Bug 5146 - mysql-workbench can't connect to localhost
Summary: mysql-workbench can't connect to localhost
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Juan Luis Baptiste
QA Contact:
URL:
Whiteboard: MGA2TOO
Keywords:
: 5595 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-28 11:37 CEST by Teymuraz Khazaradze
Modified: 2012-12-26 14:48 CET (History)
5 users (show)

See Also:
Source RPM: mysql-workbench
CVE:
Status comment:


Attachments

Description Teymuraz Khazaradze 2012-03-28 11:37:03 CEST
Description of problem:

Failed to to create new server instance. "Crate new server instance profile" wizard fails when testing database connection with message:
"Connecting to MySQL server localhost...
Database driver: Failed to open library 'mysqlcppconn'. Check settings."

At the same time console output says: 
"Error: libmysqlcppconn.so.5: невозможно оÑкÑÑÑÑ ÑазделÑемÑй обÑекÑнÑй Ñайл: ÐÐµÑ Ñакого Ñайла или каÑалога" (translation from Russian means "Error:  libmysqlcppconn.so.5: can not open shared object file. No sych file or directory").

Both packages libmysqlcppconn6 and lib64mysqlcppconn6 were already installed.


Version-Release number of selected component (if applicable):

mysql-workbench version 5.2.36 1.mga2
libmysqlcppconn6 version 1.1.0 0.7 bzr916.mga1
lib64mysqlcppconn6 version 1.1.0 0.7 bzr916.mga1


How reproducible:
Always.

Steps to Reproduce:
1. Start mysqld service
2. Start mysql-wrokbench
3. Click "New server instance"
4. Click "Next" in wizard window
5. Click "Next" in wizard window
6. Fail. In Message log there is the message:
Connecting to MySQL server localhost...
Database driver: Failed to open library 'mysqlcppconn'. Check settings.



Notes:
mysql-workbench requires libmysqlcppconn.so.5 (version 5) while Mageia package suppplies libmysqlcppconn.so.6 (version 6). Problem was fixed, when I created link libmysqlcppconn.so.5 to libmysqlcppconn.so.6 in /usr/lib64 directory.
Comment 1 Manuel Hiebel 2012-03-29 14:51:26 CEST
alien maybe you have an idea ?

CC: (none) => alien

Comment 2 AL13N 2012-03-29 21:29:03 CEST
afaict it looks like libmysqlcppconn.so.5 is being searched, but i guess since libmysqlcppconn6 is being installed that a libmysqlcppconn.so.6 is there instead?

i don't know, but the user could try to rebuild the src.rpm for mysql-workbench to see if this would alleviate the problem.
Comment 3 AL13N 2012-03-29 21:52:50 CEST
i tried rebuilding it, to see if it worked, but was unsuccessful...

maybe we should drop this package, if it doesn't work...
Comment 4 Jeffrey Laramie 2012-04-05 14:33:04 CEST
I also had this bug and updating to mysql-workbench-5.2.36-2.mga2 fixes the problem.

Jeff

CC: (none) => jalaramie

Comment 5 Manuel Hiebel 2012-04-05 19:25:15 CEST
closing then, thanks

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 6 Manuel Hiebel 2012-04-25 00:39:38 CEST
*** Bug 5595 has been marked as a duplicate of this bug. ***

CC: (none) => etiennedau-site

Comment 7 Manuel Hiebel 2012-04-25 00:40:00 CEST
> yep maybe

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 8 Manuel Hiebel 2012-04-25 00:40:39 CEST
sorry should be 
>maybe we should drop this package, if it doesn't work...
yep maybe
Comment 9 AL13N 2012-04-25 08:22:10 CEST
perhaps first ask him if he has 5.2.36.2.mga2 ...
Comment 10 etienne FR 2012-04-25 09:24:36 CEST
Yes I have the 5.2.36.2.mga2 x86_64
Comment 11 AL13N 2012-04-25 12:50:55 CEST
(In reply to comment #4)
> I also had this bug and updating to mysql-workbench-5.2.36-2.mga2 fixes the
> problem.
> 
> Jeff

could you retry with beta3? to see if etienne 's problem is limited to himself or that i's something larger.

etienne, since the MCC services doesn't yet work on beta3 (it will on RC), can you check with commandline systemctl mysqld.service start and status if everything works nicely?

perhaps check with 'mysql' cli client to see if it all works?
Comment 12 Jeffrey Laramie 2012-04-25 14:48:16 CEST
(In reply to comment #11)
> (In reply to comment #4)
> > I also had this bug and updating to mysql-workbench-5.2.36-2.mga2 fixes the
> > problem.
> > 
> > Jeff
> 
> could you retry with beta3? to see if etienne 's problem is limited to himself
> or that i's something larger.
> 
> etienne, since the MCC services doesn't yet work on beta3 (it will on RC), can
> you check with commandline systemctl mysqld.service start and status if
> everything works nicely?
> 
> perhaps check with 'mysql' cli client to see if it all works?

Short answer: It no longer works for me either.

Long answer: There are a few "gotchas" that make this harder than it needs to be.

1 - mysql is now provided by the mysql-MariaDB package. Make sure MariaDB is installed and running. Don't be confused if ps shows mysqld already running. It appears this is a daemon run by akonadi and is not the standard database daemon. Don't forget to set the root password before trying to connect.

2 - Connecting to "localhost" should work ok, but connecting to the local daemon by another host name will probably fail since mga assigns 127.0.0.1 to all local hostnames and it won't resolve correctly.

3 - The default my.cnf disables tcp-ip connections which is what mysql-workbench uses by default. Changing my.cnf to allow tcp-ip or changing mysql-workbench to use "Local Socket/Pipe" should fix this.

I got MariaDB running and I can connect with the mysql CLI client, but mysql-workbench doesn't connect. Unfortunately I don't have time right now to do any more research on this.
Comment 13 etienne FR 2012-04-26 12:18:27 CEST
(In reply to comment #11)
> (In reply to comment #4)
> > I also had this bug and updating to mysql-workbench-5.2.36-2.mga2 fixes the
> > problem.
> > 
> > Jeff
> 
> could you retry with beta3? to see if etienne 's problem is limited to himself
> or that i's something larger.
> 
> etienne, since the MCC services doesn't yet work on beta3 (it will on RC), can
> you check with commandline systemctl mysqld.service start and status if
> everything works nicely?
> 
> perhaps check with 'mysql' cli client to see if it all works?

[root@localhost ~]# systemctl mysqld.service start
Unknown operation mysqld.service
[root@localhost ~]# /etc/rc.d/init.d/mysqld start
Starting mysqld (via systemctl):                                [  OK  ]
Comment 14 Jeffrey Laramie 2012-04-26 16:58:05 CEST
(In reply to comment #11)
> (In reply to comment #4)
> > I also had this bug and updating to mysql-workbench-5.2.36-2.mga2 fixes the
> > problem.
> > 
> > Jeff
> 
> could you retry with beta3? to see if etienne 's problem is limited to himself
> or that i's something larger.

I resolved this by removing the "skip-networking" parameter from /etc/my.cnf. It now connects using both tcp-ip and the local socket. I would be interested to know why this setting blocks the local socket connection. I don't think it used to or should block it.

Jeff
Comment 15 etienne FR 2012-04-26 18:24:32 CEST
I remove this parameter too and it's ok now
Comment 16 AL13N 2012-04-26 19:50:12 CEST
so, in short, mysql-workbench connects to the network socket and not the unix socket?

or is mysql completely nonworking with this option?

if so, are these new installs?
Comment 17 Jeffrey Laramie 2012-04-26 20:09:32 CEST
(In reply to comment #16)
> so, in short, mysql-workbench connects to the network socket and not the unix
> socket?
> 
> or is mysql completely nonworking with this option?
> 
> if so, are these new installs?

With skip-networking enabled the mysql CLI tool can connect but mysql-workbench can't connect by either method.

With skip-networking disabled mysql and mysql-workbench can connect by either method.

For some reason skip-networking disables mysql-workbench's access to the local socket when it shouldn't. I don't know which package is at fault.

My version of mysql-workbench hasn't changed since I first installed mga2 on this box a couple weeks ago, but MariaDB was updated last night to mariadb-5.5.23-3.mga2 and updated at least once before that.

Jeff
Comment 18 AL13N 2012-04-26 20:28:36 CEST
to be completely sure,

can you try to still add skip-networking, then configure mysql-workbench to connect on the socket, then do a tcpdump on the mysql port to see if mysqlbench is still trying network...
Comment 19 AL13N 2012-04-26 20:48:50 CEST
(In reply to comment #17)
> (In reply to comment #16)
> > so, in short, mysql-workbench connects to the network socket and not the unix
> > socket?
> > 
> > or is mysql completely nonworking with this option?
> > 
> > if so, are these new installs?
> 
> With skip-networking enabled the mysql CLI tool can connect but mysql-workbench
> can't connect by either method.
> 
> With skip-networking disabled mysql and mysql-workbench can connect by either
> method.
> 
> For some reason skip-networking disables mysql-workbench's access to the local
> socket when it shouldn't. I don't know which package is at fault.
> 
> My version of mysql-workbench hasn't changed since I first installed mga2 on
> this box a couple weeks ago, but MariaDB was updated last night to
> mariadb-5.5.23-3.mga2 and updated at least once before that.
> 
> Jeff

mariadb asked if you can check if workbench is using the correct socket path (check with lsof |grep workbench)
Comment 20 Jeffrey Laramie 2012-04-26 21:01:34 CEST
(In reply to comment #19)
> (In reply to comment #17)
> > (In reply to comment #16)
> > > so, in short, mysql-workbench connects to the network socket and not the unix
> > > socket?
> > > 
> > > or is mysql completely nonworking with this option?
> > > 
> > > if so, are these new installs?
> > 
> > With skip-networking enabled the mysql CLI tool can connect but mysql-workbench
> > can't connect by either method.
> > 
> > With skip-networking disabled mysql and mysql-workbench can connect by either
> > method.
> > 
> > For some reason skip-networking disables mysql-workbench's access to the local
> > socket when it shouldn't. I don't know which package is at fault.
> > 
> > My version of mysql-workbench hasn't changed since I first installed mga2 on
> > this box a couple weeks ago, but MariaDB was updated last night to
> > mariadb-5.5.23-3.mga2 and updated at least once before that.
> > 
> > Jeff
> 
> mariadb asked if you can check if workbench is using the correct socket path
> (check with lsof |grep workbench)

I'm not familiar with lsof so I don't know if this helps, but here's what I got:

[root@JeffDesk jalaramie]# lsof |grep workbench
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /run/user/jalaramie/gvfs
      Output information may be incomplete.
mysql-wor  1502        jalaramie  255r      REG                8,2       394     549836 /usr/bin/mysql-workbench
mysql-wor  1505        jalaramie  txt       REG                8,2  10831096     549932 /usr/bin/mysql-workbench-bin
mysql-wor  1505        jalaramie  mem       REG                8,2   1975408     576667 /usr/lib64/mysql-workbench/plugins/db.mysql.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   1142880     576664 /usr/lib64/mysql-workbench/plugins/db.mysql.editors.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    393208     576670 /usr/lib64/mysql-workbench/plugins/wb.model.editors.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    611856     576661 /usr/lib64/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    159288     576676 /usr/lib64/mysql-workbench/plugins/wb.printing.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    200208     576673 /usr/lib64/mysql-workbench/plugins/wb.model.snippets.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2     18864     576658 /usr/lib64/mysql-workbench/plugins/db.checks.wbp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2     31288     576645 /usr/lib64/mysql-workbench/modules/dbutils.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    121992     576636 /usr/lib64/mysql-workbench/modules/db.mysql.query.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   2977984     576642 /usr/lib64/mysql-workbench/modules/db.mysql.sqlparser.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2     51984     576648 /usr/lib64/mysql-workbench/modules/forms.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    365040     576651 /usr/lib64/mysql-workbench/modules/wb.model.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    561608     576633 /usr/lib64/mysql-workbench/modules/db.mysql.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2     43984     576639 /usr/lib64/mysql-workbench/modules/db.mysql.sqlide.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    484536     576654 /usr/lib64/mysql-workbench/modules/wb.mysql.import.grt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    175656     564039 /usr/lib64/mysql-workbench/libvsqlitepp.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    187888     563999 /usr/lib64/mysql-workbench/libmdcanvasgtk.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   1179192     562055 /usr/lib64/mysql-workbench/libgrt.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    193272     564041 /usr/lib64/mysql-workbench/libwbbase.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2     84872     550178 /usr/lib64/mysql-workbench/libcdbc.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   1069752     563341 /usr/lib64/mysql-workbench/libmdcanvas.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   7442472     576624 /usr/lib64/mysql-workbench/libwbpublic.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   2101864     576626 /usr/lib64/mysql-workbench/libwbscintilla.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    490528     564035 /usr/lib64/mysql-workbench/libsqlide.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2    498224     562818 /usr/lib64/mysql-workbench/liblinux_utilities.so.0.0.0
mysql-wor  1505        jalaramie  mem       REG                8,2   2209560     564033 /usr/lib64/mysql-workbench/libmforms.so.0.0.0
mysql-wor  1505  1512  jalaramie  txt       REG                8,2  10831096     549932 /usr/bin/mysql-workbench-bin
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   1975408     576667 /usr/lib64/mysql-workbench/plugins/db.mysql.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   1142880     576664 /usr/lib64/mysql-workbench/plugins/db.mysql.editors.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    393208     576670 /usr/lib64/mysql-workbench/plugins/wb.model.editors.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    611856     576661 /usr/lib64/mysql-workbench/plugins/db.mysql.diff.reporting.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    159288     576676 /usr/lib64/mysql-workbench/plugins/wb.printing.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    200208     576673 /usr/lib64/mysql-workbench/plugins/wb.model.snippets.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2     18864     576658 /usr/lib64/mysql-workbench/plugins/db.checks.wbp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2     31288     576645 /usr/lib64/mysql-workbench/modules/dbutils.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    121992     576636 /usr/lib64/mysql-workbench/modules/db.mysql.query.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   2977984     576642 /usr/lib64/mysql-workbench/modules/db.mysql.sqlparser.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2     51984     576648 /usr/lib64/mysql-workbench/modules/forms.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    365040     576651 /usr/lib64/mysql-workbench/modules/wb.model.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    561608     576633 /usr/lib64/mysql-workbench/modules/db.mysql.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2     43984     576639 /usr/lib64/mysql-workbench/modules/db.mysql.sqlide.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    484536     576654 /usr/lib64/mysql-workbench/modules/wb.mysql.import.grt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    175656     564039 /usr/lib64/mysql-workbench/libvsqlitepp.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    187888     563999 /usr/lib64/mysql-workbench/libmdcanvasgtk.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   1179192     562055 /usr/lib64/mysql-workbench/libgrt.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    193272     564041 /usr/lib64/mysql-workbench/libwbbase.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2     84872     550178 /usr/lib64/mysql-workbench/libcdbc.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   1069752     563341 /usr/lib64/mysql-workbench/libmdcanvas.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   7442472     576624 /usr/lib64/mysql-workbench/libwbpublic.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   2101864     576626 /usr/lib64/mysql-workbench/libwbscintilla.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    490528     564035 /usr/lib64/mysql-workbench/libsqlide.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2    498224     562818 /usr/lib64/mysql-workbench/liblinux_utilities.so.0.0.0
mysql-wor  1505  1512  jalaramie  mem       REG                8,2   2209560     564033 /usr/lib64/mysql-workbench/libmforms.so.0.0.0
Comment 21 AL13N 2012-04-26 21:13:20 CEST
hmm, i don't see the socket anywhere...

lsof lists open files in use by applications

for this to work you'll have to have workbench configured to use the socket file.

perhaps you can try to lsof | grep sock | grep mysql to see if it's there but maybe used by a library instead?
Comment 22 Jeffrey Laramie 2012-04-26 21:47:00 CEST
(In reply to comment #21)
> hmm, i don't see the socket anywhere...
> 
> lsof lists open files in use by applications
> 
> for this to work you'll have to have workbench configured to use the socket
> file.
> 
> perhaps you can try to lsof | grep sock | grep mysql to see if it's there but
> maybe used by a library instead?

That command returns about a million results that look like this:

mysqld    24161 24196      mysql   15u     unix 0xffff880065732080       0t0    3633228 /var/lib/mysql/mysql.sock
mysqld    24161 24197      mysql   15u     unix 0xffff880065732080       0t0    3633228 /var/lib/mysql/mysql.sock
mysqld    24161 24198      mysql   15u     unix 0xffff880065732080       0t0    3633228 /var/lib/mysql/mysql.sock
mysqld    24161 24207      mysql   15u     unix 0xffff880065732080       0t0    3633228 /var/lib/mysql/mysql.sock
mysqld    24161 24208      mysql   15u     unix 0xffff880065732080       0t0    3633228 /var/lib/mysql/mysql.sock

I don't know how to narrow this down to a usable result and how you could tell the difference between the connection from akonadi and from mysql-workbench.

"lsof | grep workbench | grep sock" produces no results.
Comment 23 AL13N 2012-04-26 22:42:23 CEST
and what about

"lsof | grep sock | grep mysql-wor"

(i saw that the output of the process string stops at 8 chars)
Comment 24 AL13N 2012-04-26 22:43:04 CEST
or even 

"lsof | grep sock | grep mysql | grep -v mysqld" ?
Comment 25 Jeffrey Laramie 2012-04-27 04:02:27 CEST
(In reply to comment #23)
> and what about
> 
> "lsof | grep sock | grep mysql-wor"
> 
> (i saw that the output of the process string stops at 8 chars)

I tried these and didn't get anything useful. After thinking about this I realized it doesn't really matter what the default socket file is since you can change it.

I tried setting it manually to var/lib/mysql/mysql.sock and the results were the same. It would connect if skip-networking was disabled but not if skip-networking was enabled.

So then I set it manually to "var/lib/mysql/foo.bar" and it still connected. It seems that it ignores the parameter altogether.

Since we didn't find a socket file with lsof, since the connection depends on tcp-ip being enabled in my.cnf, and since it connects no matter what the socket file is, my conclusion is that mysql-workbench is only using tcp-ip to connect no matter what the connection settings are. I'm pretty sure this is a mysql-workbench bug.
Comment 26 AL13N 2012-04-27 18:09:07 CEST
that was what i figured as well...
Comment 27 Jeffrey Laramie 2012-04-27 22:33:42 CEST
There may be another mysql-workbench bug. I tested it last night just before I added my comment here. I just noticed that mysql-workbench is still running even though I closed the GUIs last night:

[root@JeffDesk jalaramie]# ps -A | grep mysql-workbench
 1502 ?        00:00:00 mysql-workbench
 1505 ?        00:00:01 mysql-workbench
 2472 ?        00:00:00 mysql-workbench
 2473 ?        00:00:10 mysql-workbench
19775 ?        00:00:00 mysql-workbench
19776 ?        00:00:09 mysql-workbench
Comment 28 Marja Van Waes 2012-05-26 13:10:32 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 29 dave pickles 2012-06-06 16:44:05 CEST
I hope I'm not confusing two issues, but I see the same problem with MySQL Workbench.

I run MariaDB with the 'skip-networking' option turned on. If I try to connect using MySQL Workbench via the socket '/var/lib/mysql/mysql.sock', I see the following message:

Error occured: Unknown MySQL server host '/var/lib/mysql/mysql.sock' (0)

However if I change the socket name to '/var/lib/mysql/foo.sock' the message changes to:

Error occured: Can't connect to MySQL server on '127.0.0.1' (111)

If I enable networking in my.cnf, I see the same error in the first case, but in the second I can connect (presumably via TCP/IP).

I wondered whether the workbench software was seeing an unexpected response when connecting via the socket (MariaDB instead of MySQL as the server name maybe?) but not via networking.

CC: (none) => mg

Comment 30 AL13N 2012-06-06 18:43:50 CEST
upstream tells me this might be possible.

i guess some developer could try to find where MySQL is being expected and loosen that check or something.
Comment 31 AL13N 2012-06-06 18:46:48 CEST
perhaps you could try to use the 'mysql' command in a terminal to check if that works over a socket connection.
Comment 32 AL13N 2012-06-06 18:51:13 CEST
upstream tells me that it might be related to mysql-connector-c++ since that's in their experience not something that people have been actively developing on

you could try rebuilding that from a newer version and see if that helps
Comment 33 dave pickles 2012-06-06 18:54:18 CEST
(In reply to comment #31)
> perhaps you could try to use the 'mysql' command in a terminal to check if that
> works over a socket connection.

Yes it does, also PHP connects locally via socket.
Comment 34 AL13N 2012-06-06 20:51:51 CEST
mariadb people pointed out to me that only mysql-workbench is using mysql-connector-c++ afatk.

so maybe it's there
Marja Van Waes 2012-08-04 14:04:01 CEST

Keywords: NEEDINFO => (none)
CC: (none) => marja11
Whiteboard: (none) => MGA2TOO

Marja Van Waes 2012-08-04 14:04:44 CEST

Assignee: bugsquad => juan.baptiste

Comment 35 Juan Luis Baptiste 2012-08-10 06:22:29 CEST
I'm still not clear currently which is the problem. I can connect in both cases:

1. If skip-networking is commented and the configured connection is configured to use TCP/IP, the connection works.

2. If skip-networking is not commented and the configured connection is configured to use *local socket/pipe* and I use /var/lib/mysql/mysql.sock, the connection also works.

For what I have understood from some of the comments, it seems that some of the people testing this when enabling skip-networking, they have forgotten to change the type of connection from TCP/IP to local socket/pipe and specify the correct socket. That seems to be the reason some say that mysql-workbench seems to still try to connect via TCP/IP after they have enabled skip-networking (which means no TCP/IP connection is available) and want to connect using local sockets.

Also I never get nor in the wizard or in the text console the initial report error about libmysqlcppconn.so.5: can not open shared object file. No such file or
directory").
Comment 36 AL13N 2012-08-10 18:15:51 CEST
so, in short? there is no bug, it's a feature? or ...?
Comment 37 Juan Luis Baptiste 2012-08-10 18:25:23 CEST
For me, there's no bug, it's how it is supposed to be. If you are using local sockets, then your connection configured in workbench should be configured to use local sockets, and if you are using TCP connections, then you need to modify your workbench connection to use TCP, don't expect this to happen automatically.
Comment 38 Jeffrey Laramie 2012-08-10 18:32:48 CEST
(In reply to comment #36)
> so, in short? there is no bug, it's a feature? or ...?

There was a bug but it was fixed for me by updating to mysql-workbench-5.2.36-2.mga2. I haven't had problems since, so I think the problems people are having are configuration issues as described by Jean Luis Baptiste. Unless someone else can verify that it's still broken (after proper configuration), I think this can be closed.

Jeff
Comment 39 Juan Luis Baptiste 2012-11-05 08:32:39 CET
Latest version 5.2.44 of mysql-workbench is available on cauldron, for me the issue is fixed, can the bug reporter test too ?
Comment 40 Juan Luis Baptiste 2012-11-24 19:27:49 CET
Also yesterday an update for mga 2 with version mysal-workbench-5.2.36-2.1 was pushed, please test this too.
Comment 41 Juan Luis Baptiste 2012-12-26 01:37:15 CET
Ping ?
Comment 42 AL13N 2012-12-26 09:33:18 CET
if the reporter doesn't react, we should close this one and he can reopen if necessary.
Comment 43 Teymuraz Khazaradze 2012-12-26 14:48:04 CET
I just tested mysql-workbench on fresh Mageia 2 32-bit installation. "Crate new server instance profile" wizard is working ok.

Status changed to FIXED.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.