Link to home
Create AccountLog in
Avatar of sargent240
sargent240Flag for United States of America

asked on

Mysql connection

Trying to log into mysql and get the following error.  Trying as user or root.  Yast says mysqld is running.

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

Thanks!
Avatar of arnold
arnold
Flag of United States of America image

The socket may be somewhere else, you could configure /etc/my.cnf to point to the correct location, or use TCP/IP
ps -ef | grep -i mysql

lsof -p <PID of mysql server>
Look what socket/tcp port it is bound to.

Try mysql -h localhost -P 3306 -u root -p
If the MySQL server is on a different machine, you need to connect with a user that has permissions to use that connection.  MySQL users are defined by username, password, and connection.  http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
Avatar of sargent240

ASKER

The server is on the machine I am using.  Does the following tell us anything?

linux-6yw2:/home/al # ps -ef |grep -i mysql
al        3785  3783  0 13:01 ?        00:00:00 /usr/sbin/mysqld --defaults-file=/home/al/.local/share
root      9275  5892  0 14:11 pts/2    00:00:00 grep --color=auto -i mysql
You are running mysql as a user, you need to point your mysql client to use the same config file /home/al/.local/share/my.cnf
Do which mysql to see whether the client you are using the one you built/install or is one from the installed system which uses a different config file.
I am not sure what happened because I have been using mysql on this machine for several months and all of a sudden this problem.  What is the procedure for getting things pointed in the right direction again?  Thanks arnold!
arnold:  When I did 'which mysql' this was the response:

al@linux-6yw2:~> which mysql
/usr/bin/mysql
al@linux-6yw2:~>
run lsof -p 3785 and see where it created the socket.
Where is your my.cnf file ~/my.cnf?
Boy here's a string of stuff!

al@linux-6yw2:~> lsof -p 3785
COMMAND  PID USER   FD   TYPE     DEVICE SIZE/OFF    NODE NAME
mysqld  3785   al  cwd    DIR        8,7     4096 7340207 /home/al/.local/share/akonadi/db_data
mysqld  3785   al  rtd    DIR        8,6     4096       2 /
mysqld  3785   al  txt    REG        8,6 10042748 1057671 /usr/sbin/mysqld
mysqld  3785   al  mem    REG        8,6  1920983  920913 /lib/libc-2.1al@linux-6yw2:~> lsof -p 3785
COMMAND  PID USER   FD   TYPE     DEVICE SIZE/OFF    NODE NAME
mysqld  3785   al  cwd    DIR        8,7     4096 7340207 /home/al/.local/share/akonadi/db_data
mysqld  3785   al  rtd    DIR        8,6     4096       2 /
mysqld  3785   al  txt    REG        8,6 10042748 1057671 /usr/sbin/mysqld
mysqld  3785   al  mem    REG        8,6  1920983  920913 /lib/libc-2.15.so
mysqld  3785   al  mem    REG        8,6   116348  920837 /lib/libgcc_s.so.1
mysqld  3785   al  mem    REG        8,6   201625  920316 /lib/libm-2.15.so
mysqld  3785   al  mem    REG        8,6   938684  793691 /usr/lib/libstdc++.so.6.0.17
mysqld  3785   al  mem    REG        8,6  1779904  920820 /lib/libcrypto.so.1.0.0
mysqld  3785   al  mem    REG        8,6   395376  920904 /lib/libssl.so.1.0.0
mysqld  3785   al  mem    REG        8,6    17364  920836 /lib/libdl-2.15.so
mysqld  3785   al  mem    REG        8,6    61173  920771 /lib/libcrypt-2.15.so
mysqld  3785   al  mem    REG        8,6   124731  920773 /lib/libpthread-2.15.so
mysqld  3785   al  mem    REG        8,6    38955  920491 /lib/librt-2.15.so
mysqld  3785   al  mem    REG        8,6    87544  920848 /lib/libz.so.1.2.7
mysqld  3785   al  mem    REG        8,6   152418  920851 /lib/ld-2.15.so
mysqld  3785   al    0r  FIFO        0,8      0t0   17597 pipe
mysqld  3785   al    1w   REG        8,7      701 7340148 /home/al/.local/share/akonadi/db_data/mysql.err
mysqld  3785   al    2w   REG        8,7      701 7340148 /home/al/.local/share/akonadi/db_data/mysql.err
mysqld  3785   al    3uW  REG        8,7 18874368 7340322 /home/al/.local/share/akonadi/db_data/ibdata1
mysqld  3785   al    4u   REG        8,6        0 1216639 /tmp/ib6y3h6b (deleted)
mysqld  3785   al    5u   REG        8,6        0 1220132 /tmp/ibzELXua (deleted)
mysqld  3785   al    6u   REG        8,6        0 1220133 /tmp/ibeORDT8 (deleted)
mysqld  3785   al    7u   REG        8,6        0 1220134 /tmp/ibpU7Lj7 (deleted)
mysqld  3785   al    8uW  REG        8,7 67108864 7340323 /home/al/.local/share/akonadi/db_data/ib_logfile0
mysqld  3785   al    9uW  REG        8,7 67108864 7340324 /home/al/.local/share/akonadi/db_data/ib_logfile1
mysqld  3785   al   10u  unix 0xf62e8b80      0t0   16668 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   11u   REG        8,6        0 1220136 /tmp/ibrMRAv6 (deleted)
mysqld  3785   al   12u   REG        8,7     1024 7340229 /home/al/.local/share/akonadi/db_data/mysql/servers.MYI
mysqld  3785   al   13u   REG        8,7        0 7340230 /home/al/.local/share/akonadi/db_data/mysql/servers.MYD
mysqld  3785   al   14u  unix 0xf62e84c0      0t0   17732 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   15u  unix 0xf62e8040      0t0   17733 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   16uW  REG        8,7   131072 7340178 /home/al/.local/share/akonadi/db_data/akonadi/collectionattributetable.ibd
mysqld  3785   al   17uW  REG        8,7    98304 7340311 /home/al/.local/share/akonadi/db_data/akonadi/collectionmimetyperelation.ibd
mysqld  3785   al   18uW  REG        8,7    98304 7340345 /home/al/.local/share/akonadi/db_data/akonadi/collectionpimitemrelation.ibd
mysqld  3785   al   19uW  REG        8,7   147456 7340334 /home/al/.local/share/akonadi/db_data/akonadi/collectiontable.ibd
mysqld  3785   al   20uW  REG        8,7   114688 7340340 /home/al/.local/share/akonadi/db_data/akonadi/flagtable.ibd
mysqld  3785   al   21uW  REG        8,7   114688 7340338 /home/al/.local/share/akonadi/db_data/akonadi/mimetypetable.ibd
mysqld  3785   al   22uW  REG        8,7   131072 7340342 /home/al/.local/share/akonadi/db_data/akonadi/parttable.ibd
mysqld  3785   al   23uW  REG        8,7    98304 7340309 /home/al/.local/share/akonadi/db_data/akonadi/pimitemflagrelation.ibd
mysqld  3785   al   24uW  REG        8,7   147456 7340336 /home/al/.local/share/akonadi/db_data/akonadi/pimitemtable.ibd
mysqld  3785   al   25uW  REG        8,7   114688 7340332 /home/al/.local/share/akonadi/db_data/akonadi/resourcetable.ibd
mysqld  3785   al   26uW  REG        8,7    98304 7340330 /home/al/.local/share/akonadi/db_data/akonadi/schemaversiontable.ibd
mysqld  3785   al   27u   REG        8,7     4096 7340235 /home/al/.local/share/akonadi/db_data/mysql/columns_priv.MYI
mysqld  3785   al   28u   REG        8,7        0 7340236 /home/al/.local/share/akonadi/db_data/mysql/columns_priv.MYD
mysqld  3785   al   29u   REG        8,7     5120 7340214 /home/al/.local/share/akonadi/db_data/mysql/db.MYI
mysqld  3785   al   30u   REG        8,7      880 7340215 /home/al/.local/share/akonadi/db_data/mysql/db.MYD
mysqld  3785   al   31u   REG        8,7     2048 7340281 /home/al/.local/share/akonadi/db_data/mysql/event.MYI
mysqld  3785   al   32u   REG        8,7        0 7340282 /home/al/.local/share/akonadi/db_data/mysql/event.MYD
mysqld  3785   al   33u   REG        8,7     1024 7340223 /home/al/.local/share/akonadi/db_data/mysql/func.MYI
mysqld  3785   al   34u   REG        8,7        0 7340224 /home/al/.local/share/akonadi/db_data/mysql/func.MYD
mysqld  3785   al   35u   REG        8,7       35 7340273 /home/al/.local/share/akonadi/db_data/mysql/general_log.CSM
mysqld  3785   al   36r   REG        8,7        0 7340274 /home/al/.local/share/akonadi/db_data/mysql/general_log.CSV
mysqld  3785   al   37u   REG        8,7     3072 7340241 /home/al/.local/share/akonadi/db_data/mysql/help_category.MYI
mysqld  3785   al   38u   REG        8,7    22659 7340242 /home/al/.local/share/akonadi/db_data/mysql/help_category.MYD
mysqld  3785   al   39u   REG        8,7    16384 7340249 /home/al/.local/share/akonadi/db_data/mysql/help_keyword.MYI
mysqld  3785   al   40u   REG        8,7    91408 7340250 /home/al/.local/share/akonadi/db_data/mysql/help_keyword.MYD
mysqld  3785   al   41u   REG        8,7    19456 7340244 /home/al/.local/share/akonadi/db_data/mysql/help_relation.MYI
mysqld  3785   al   42u   REG        8,7     9252 7340245 /home/al/.local/share/akonadi/db_data/mysql/help_relation.MYD
mysqld  3785   al   43u   REG        8,7    20480 7340238 /home/al/.local/share/akonadi/db_data/mysql/help_topic.MYI
mysqld  3785   al   44u   REG        8,7   446672 7340239 /home/al/.local/share/akonadi/db_data/mysql/help_topic.MYD
mysqld  3785   al   45u   REG        8,7     2048 7340217 /home/al/.local/share/akonadi/db_data/mysql/host.MYI
mysqld  3785   al   46u   REG        8,7        0 7340218 /home/al/.local/share/akonadi/db_data/mysql/host.MYD
mysqld  3785   al   47u   REG        8,7     1024 7340284 /home/al/.local/share/akonadi/db_data/mysql/ndb_binlog_index.MYI
mysqld  3785   al   48u   REG        8,7        0 7340285 /home/al/.local/share/akonadi/db_data/mysql/ndb_binlog_index.MYD
mysqld  3785   al   49u   REG        8,7     1024 7340226 /home/al/.local/share/akonadi/db_data/mysql/plugin.MYI
mysqld  3785   al   50u   REG        8,7        0 7340227 /home/al/.local/share/akonadi/db_data/mysql/plugin.MYD
mysqld  3785   al   51u   REG        8,7     2048 7340267 /home/al/.local/share/akonadi/db_data/mysql/proc.MYI
mysqld  3785   al   52u   REG        8,7        0 7340268 /home/al/.local/share/akonadi/db_data/mysql/proc.MYD
mysqld  3785   al   53u   REG        8,7     4096 7340270 /home/al/.local/share/akonadi/db_data/mysql/procs_priv.MYI
mysqld  3785   al   54u   REG        8,7        0 7340271 /home/al/.local/share/akonadi/db_data/mysql/procs_priv.MYD
mysqld  3785   al   55u   REG        8,7     5120 7340320 /home/al/.local/share/akonadi/db_data/mysql/proxies_priv.MYI
mysqld  3785   al   56u   REG        8,7     1386 7340321 /home/al/.local/share/akonadi/db_data/mysql/proxies_priv.MYD
mysqld  3785   al   57u   REG        8,7       35 7340276 /home/al/.local/share/akonadi/db_data/mysql/slow_log.CSM
mysqld  3785   al   58r   REG        8,7        0 7340277 /home/al/.local/share/akonadi/db_data/mysql/slow_log.CSV
mysqld  3785   al   59u   REG        8,7     4096 7340232 /home/al/.local/share/akonadi/db_data/mysql/tables_priv.MYI
mysqld  3785   al   60u   REG        8,7        0 7340233 /home/al/.local/share/akonadi/db_data/mysql/tables_priv.MYD
mysqld  3785   al   61u   REG        8,7     1024 7340255 /home/al/.local/share/akonadi/db_data/mysql/time_zone.MYI
mysqld  3785   al   62u   REG        8,7        0 7340256 /home/al/.local/share/akonadi/db_data/mysql/time_zone.MYD
mysqld  3785   al   63u   REG        8,7     1024 7340264 /home/al/.local/share/akonadi/db_data/mysql/time_zone_leap_second.MYI
mysqld  3785   al   64u   REG        8,7        0 7340265 /home/al/.local/share/akonadi/db_data/mysql/time_zone_leap_second.MYD
mysqld  3785   al   65u   REG        8,7     1024 7340252 /home/al/.local/share/akonadi/db_data/mysql/time_zone_name.MYI
mysqld  3785   al   66u   REG        8,7        0 7340253 /home/al/.local/share/akonadi/db_data/mysql/time_zone_name.MYD
mysqld  3785   al   67u   REG        8,7     1024 7340258 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition.MYI
mysqld  3785   al   68u   REG        8,7        0 7340259 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition.MYD
mysqld  3785   al   69u   REG        8,7     1024 7340261 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition_type.MYI
mysqld  3785   al   70u   REG        8,7        0 7340262 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition_type.MYD
mysqld  3785   al   71u   REG        8,7     2048 7340220 /home/al/.local/share/akonadi/db_data/mysql/user.MYI
mysqld  3785   al   72u   REG        8,7      320 7340221 /home/al/.local/share/akonadi/db_data/mysql/user.MYD
mysqld  3785   al   73u  unix 0xf0cab700      0t0   16680 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   74u  unix 0xf0cab280      0t0   17740 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   75u  unix 0xf08a7040      0t0   16721 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   76u  unix 0xef503dc0      0t0   16745 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   77u  unix 0xef503940      0t0   16747 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   78u  unix 0xf62f3940      0t0   16751 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   79u  unix 0xef5034c0      0t0   16753 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   80u  unix 0xf62f34c0      0t0   17872 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   81u  unix 0xef503040      0t0   17875 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   82u  unix 0xf620ab80      0t0   17878 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   83u  unix 0xef9aab80      0t0   17880 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
al@linux-6yw2:~>
5.so
mysqld  3785   al  mem    REG        8,6   116348  920837 /lib/libgcc_s.so.1
mysqld  3785   al  mem    REG        8,6   201625  920316 /lib/libm-2.15.so
mysqld  3785   al  mem    REG        8,6   938684  793691 /usr/lib/libstdc++.so.6.0.17
mysqld  3785   al  mem    REG        8,6  1779904  920820 /lib/libcrypto.so.1.0.0
mysqld  3785   al  mem    REG        8,6   395376  920904 /lib/libssl.so.1.0.0
mysqld  3785   al  mem    REG        8,6    17364  920836 /lib/libdl-2.15.so
mysqld  3785   al  mem    REG        8,6    61173  920771 /lib/libcrypt-2.15.so
mysqld  3785   al  mem    REG        8,6   124731  920773 /lib/libpthread-2.15.so
mysqld  3785   al  mem    REG        8,6    38955  920491 /lib/librt-2.15.so
mysqld  3785   al  mem    REG        8,6    87544  920848 /lib/libz.so.1.2.7
mysqld  3785   al  mem    REG        8,6   152418  920851 /lib/ld-2.15.so
mysqld  3785   al    0r  FIFO        0,8      0t0   17597 pipe
mysqld  3785   al    1w   REG        8,7      701 7340148 /home/al/.local/share/akonadi/db_data/mysql.err
mysqld  3785   al    2w   REG        8,7      701 7340148 /home/al/.local/share/akonadi/db_data/mysql.err
mysqld  3785   al    3uW  REG        8,7 18874368 7340322 /home/al/.local/share/akonadi/db_data/ibdata1
mysqld  3785   al    4u   REG        8,6        0 1216639 /tmp/ib6y3h6b (deleted)
mysqld  3785   al    5u   REG        8,6        0 1220132 /tmp/ibzELXua (deleted)
mysqld  3785   al    6u   REG        8,6        0 1220133 /tmp/ibeORDT8 (deleted)
mysqld  3785   al    7u   REG        8,6        0 1220134 /tmp/ibpU7Lj7 (deleted)
mysqld  3785   al    8uW  REG        8,7 67108864 7340323 /home/al/.local/share/akonadi/db_data/ib_logfile0
mysqld  3785   al    9uW  REG        8,7 67108864 7340324 /home/al/.local/share/akonadi/db_data/ib_logfile1
mysqld  3785   al   10u  unix 0xf62e8b80      0t0   16668 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   11u   REG        8,6        0 1220136 /tmp/ibrMRAv6 (deleted)
mysqld  3785   al   12u   REG        8,7     1024 7340229 /home/al/.local/share/akonadi/db_data/mysql/servers.MYI
mysqld  3785   al   13u   REG        8,7        0 7340230 /home/al/.local/share/akonadi/db_data/mysql/servers.MYD
mysqld  3785   al   14u  unix 0xf62e84c0      0t0   17732 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   15u  unix 0xf62e8040      0t0   17733 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   16uW  REG        8,7   131072 7340178 /home/al/.local/share/akonadi/db_data/akonadi/collectionattributetable.ibd
mysqld  3785   al   17uW  REG        8,7    98304 7340311 /home/al/.local/share/akonadi/db_data/akonadi/collectionmimetyperelation.ibd
mysqld  3785   al   18uW  REG        8,7    98304 7340345 /home/al/.local/share/akonadi/db_data/akonadi/collectionpimitemrelation.ibd
mysqld  3785   al   19uW  REG        8,7   147456 7340334 /home/al/.local/share/akonadi/db_data/akonadi/collectiontable.ibd
mysqld  3785   al   20uW  REG        8,7   114688 7340340 /home/al/.local/share/akonadi/db_data/akonadi/flagtable.ibd
mysqld  3785   al   21uW  REG        8,7   114688 7340338 /home/al/.local/share/akonadi/db_data/akonadi/mimetypetable.ibd
mysqld  3785   al   22uW  REG        8,7   131072 7340342 /home/al/.local/share/akonadi/db_data/akonadi/parttable.ibd
mysqld  3785   al   23uW  REG        8,7    98304 7340309 /home/al/.local/share/akonadi/db_data/akonadi/pimitemflagrelation.ibd
mysqld  3785   al   24uW  REG        8,7   147456 7340336 /home/al/.local/share/akonadi/db_data/akonadi/pimitemtable.ibd
mysqld  3785   al   25uW  REG        8,7   114688 7340332 /home/al/.local/share/akonadi/db_data/akonadi/resourcetable.ibd
mysqld  3785   al   26uW  REG        8,7    98304 7340330 /home/al/.local/share/akonadi/db_data/akonadi/schemaversiontable.ibd
mysqld  3785   al   27u   REG        8,7     4096 7340235 /home/al/.local/share/akonadi/db_data/mysql/columns_priv.MYI
mysqld  3785   al   28u   REG        8,7        0 7340236 /home/al/.local/share/akonadi/db_data/mysql/columns_priv.MYD
mysqld  3785   al   29u   REG        8,7     5120 7340214 /home/al/.local/share/akonadi/db_data/mysql/db.MYI
mysqld  3785   al   30u   REG        8,7      880 7340215 /home/al/.local/share/akonadi/db_data/mysql/db.MYD
mysqld  3785   al   31u   REG        8,7     2048 7340281 /home/al/.local/share/akonadi/db_data/mysql/event.MYI
mysqld  3785   al   32u   REG        8,7        0 7340282 /home/al/.local/share/akonadi/db_data/mysql/event.MYD
mysqld  3785   al   33u   REG        8,7     1024 7340223 /home/al/.local/share/akonadi/db_data/mysql/func.MYI
mysqld  3785   al   34u   REG        8,7        0 7340224 /home/al/.local/share/akonadi/db_data/mysql/func.MYD
mysqld  3785   al   35u   REG        8,7       35 7340273 /home/al/.local/share/akonadi/db_data/mysql/general_log.CSM
mysqld  3785   al   36r   REG        8,7        0 7340274 /home/al/.local/share/akonadi/db_data/mysql/general_log.CSV
mysqld  3785   al   37u   REG        8,7     3072 7340241 /home/al/.local/share/akonadi/db_data/mysql/help_category.MYI
mysqld  3785   al   38u   REG        8,7    22659 7340242 /home/al/.local/share/akonadi/db_data/mysql/help_category.MYD
mysqld  3785   al   39u   REG        8,7    16384 7340249 /home/al/.local/share/akonadi/db_data/mysql/help_keyword.MYI
mysqld  3785   al   40u   REG        8,7    91408 7340250 /home/al/.local/share/akonadi/db_data/mysql/help_keyword.MYD
mysqld  3785   al   41u   REG        8,7    19456 7340244 /home/al/.local/share/akonadi/db_data/mysql/help_relation.MYI
mysqld  3785   al   42u   REG        8,7     9252 7340245 /home/al/.local/share/akonadi/db_data/mysql/help_relation.MYD
mysqld  3785   al   43u   REG        8,7    20480 7340238 /home/al/.local/share/akonadi/db_data/mysql/help_topic.MYI
mysqld  3785   al   44u   REG        8,7   446672 7340239 /home/al/.local/share/akonadi/db_data/mysql/help_topic.MYD
mysqld  3785   al   45u   REG        8,7     2048 7340217 /home/al/.local/share/akonadi/db_data/mysql/host.MYI
mysqld  3785   al   46u   REG        8,7        0 7340218 /home/al/.local/share/akonadi/db_data/mysql/host.MYD
mysqld  3785   al   47u   REG        8,7     1024 7340284 /home/al/.local/share/akonadi/db_data/mysql/ndb_binlog_index.MYI
mysqld  3785   al   48u   REG        8,7        0 7340285 /home/al/.local/share/akonadi/db_data/mysql/ndb_binlog_index.MYD
mysqld  3785   al   49u   REG        8,7     1024 7340226 /home/al/.local/share/akonadi/db_data/mysql/plugin.MYI
mysqld  3785   al   50u   REG        8,7        0 7340227 /home/al/.local/share/akonadi/db_data/mysql/plugin.MYD
mysqld  3785   al   51u   REG        8,7     2048 7340267 /home/al/.local/share/akonadi/db_data/mysql/proc.MYI
mysqld  3785   al   52u   REG        8,7        0 7340268 /home/al/.local/share/akonadi/db_data/mysql/proc.MYD
mysqld  3785   al   53u   REG        8,7     4096 7340270 /home/al/.local/share/akonadi/db_data/mysql/procs_priv.MYI
mysqld  3785   al   54u   REG        8,7        0 7340271 /home/al/.local/share/akonadi/db_data/mysql/procs_priv.MYD
mysqld  3785   al   55u   REG        8,7     5120 7340320 /home/al/.local/share/akonadi/db_data/mysql/proxies_priv.MYI
mysqld  3785   al   56u   REG        8,7     1386 7340321 /home/al/.local/share/akonadi/db_data/mysql/proxies_priv.MYD
mysqld  3785   al   57u   REG        8,7       35 7340276 /home/al/.local/share/akonadi/db_data/mysql/slow_log.CSM
mysqld  3785   al   58r   REG        8,7        0 7340277 /home/al/.local/share/akonadi/db_data/mysql/slow_log.CSV
mysqld  3785   al   59u   REG        8,7     4096 7340232 /home/al/.local/share/akonadi/db_data/mysql/tables_priv.MYI
mysqld  3785   al   60u   REG        8,7        0 7340233 /home/al/.local/share/akonadi/db_data/mysql/tables_priv.MYD
mysqld  3785   al   61u   REG        8,7     1024 7340255 /home/al/.local/share/akonadi/db_data/mysql/time_zone.MYI
mysqld  3785   al   62u   REG        8,7        0 7340256 /home/al/.local/share/akonadi/db_data/mysql/time_zone.MYD
mysqld  3785   al   63u   REG        8,7     1024 7340264 /home/al/.local/share/akonadi/db_data/mysql/time_zone_leap_second.MYI
mysqld  3785   al   64u   REG        8,7        0 7340265 /home/al/.local/share/akonadi/db_data/mysql/time_zone_leap_second.MYD
mysqld  3785   al   65u   REG        8,7     1024 7340252 /home/al/.local/share/akonadi/db_data/mysql/time_zone_name.MYI
mysqld  3785   al   66u   REG        8,7        0 7340253 /home/al/.local/share/akonadi/db_data/mysql/time_zone_name.MYD
mysqld  3785   al   67u   REG        8,7     1024 7340258 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition.MYI
mysqld  3785   al   68u   REG        8,7        0 7340259 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition.MYD
mysqld  3785   al   69u   REG        8,7     1024 7340261 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition_type.MYI
mysqld  3785   al   70u   REG        8,7        0 7340262 /home/al/.local/share/akonadi/db_data/mysql/time_zone_transition_type.MYD
mysqld  3785   al   71u   REG        8,7     2048 7340220 /home/al/.local/share/akonadi/db_data/mysql/user.MYI
mysqld  3785   al   72u   REG        8,7      320 7340221 /home/al/.local/share/akonadi/db_data/mysql/user.MYD
mysqld  3785   al   73u  unix 0xf0cab700      0t0   16680 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   74u  unix 0xf0cab280      0t0   17740 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   75u  unix 0xf08a7040      0t0   16721 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   76u  unix 0xef503dc0      0t0   16745 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   77u  unix 0xef503940      0t0   16747 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   78u  unix 0xf62f3940      0t0   16751 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   79u  unix 0xef5034c0      0t0   16753 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   80u  unix 0xf62f34c0      0t0   17872 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   81u  unix 0xef503040      0t0   17875 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   82u  unix 0xf620ab80      0t0   17878 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
mysqld  3785   al   83u  unix 0xef9aab80      0t0   17880 /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
al@linux-6yw2:~>
oops I guess I got it duplicated.  Sorry.
the my.cnf file is in the /etc directory.  It is attached.
I noticed in the my.cnf file it points to:

/var/lib/mysql/mysql.sock

but that file does not exist.
Your mysqld server opens the socket in /home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket
Way do you start mysql as your user account versus enabling the server to run the daemon as mysql in /var/lib/mysql?
Ether modify the my.cnf and reference this socket or modify how your mysql starts/runs.
Which would  you suggest as the best alternative?  I installed mysql when I installed the operating system,  in Yast set it to run on boot, and it has been running with those defaults ever since.
Not sure what configuration options you choose for mysql. Modify /etc/my.cnf to ave the socket point to where it is now, or modify the startup process to use the socket in the location where my.cnf points to.
Sorry for the delay in getting back to this.  I am not sure how to accomplish what you suggest in your last post.  If I read your posts correctly are you suggesting I change the following line in my.cnf file in the /etc directory?

socket          = /var/run/mysql/mysql.sock

to read:

socket          =/home/al/.local/share/akonadi/socket-linux-6yw2/mysql.socket

Below is the portion of the file where I see the "socket      =" line.  If the above is correct I don't know what to do to "modify the startup process."  Thanks arnold.

# The MySQL server
[mysqld]
port            = 3306
socket          = /var/run/mysql/mysql.sock
# Change following line if you want to store your database elsewhere
datadir = /var/lib/mysql
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Don't know what I did exactly arnold but I am back in business.  I did change the my.cnf file.  Again Thanks!
Take the time to look when and how the service starts and make sure where the data is gathered for the settings.
How do I check to see when and how the service starts?
Not too familiar with suse, look at /etc/init.d/mysqld is likely has the settings or refers where the different parameters are loaded from.
Do you start mysql, or does it start when the system boots?
chkconfig --list |grep -i mysql

Yast might be the tool you need to use to manage the service