Hey guys,
I’ve been working on setting up a LAMP (Linux, Apache, MySQL and PHP) server on OpenSUSE 11.1, and I’ve run into a reoccurring issue with the path for the MySQL socket. I’ve been using the following tutorial on the OpenSUSE website to setup the server because I’m not familiar with the configuration of the server: click here. The section that I’ve been having particular trouble with is the Configuring mySQL section; everything previous to that point is working fine and went over without a hitch. When I start PHPMyAdmin and try to login with the username root and the password I set during installation, and I get the following error:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
Here is the package information for the MySQL package:
zypper info mysql
Information for package mysql:
Repository: @System
Name: mysql
Version: 5.1.34-30.1
Arch: i586
Vendor: openSUSE Build Service
Installed: Yes
Status: up-to-date
Installed Size: 25.5 M
Summary: A True Multiuser, Multithreaded SQL Database Server
And the package information for PHPMyAdmin:
zypper info phpmyadmin
Information for package phpmyadmin:
Repository: @System
Name: phpMyAdmin
Version: 3.1.5-1.1
Arch: noarch
Vendor: openSUSE Build Service
Installed: Yes
Status: up-to-date
Installed Size: 10.8 M
Summary: Administration of MySQL over the web
The following is the system information for my OpenSUSE system:
uname -a
Linux linux-gdii 2.6.27.23-0.1-pae #1 SMP 2009-05-26 17:02:05 -0400 i686 i686 i386 GNU/Linux
And lastly, the MySQL log under /var/log:
cat /var/log/mysqld.log
090621 21:40:16 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
090621 21:40:16 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait…
090621 21:40:16 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait…
090621 21:40:16 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait…
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
090621 21:40:17 InnoDB: Started; log sequence number 0 0
090621 21:40:17 [Note] Event Scheduler: Loaded 0 events
090621 21:40:17 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘5.1.34-log’ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 SUSE MySQL RPM
090621 21:53:16 mysqld_safe A mysqld process already exists
090621 22:20:48 [Note] /usr/sbin/mysqld: Normal shutdown
090621 22:20:48 [Note] Event Scheduler: Purging the queue. 0 events
090621 22:20:48 InnoDB: Starting shutdown…
090621 22:20:49 InnoDB: Shutdown completed; log sequence number 0 46409
090621 22:20:49 [Warning] Forcing shutdown of 1 plugins
090621 22:20:49 [Note] /usr/sbin/mysqld: Shutdown complete
090621 22:20:49 mysqld_safe mysqld from pid file /var/run/mysql/mysqld.pid ended
090622 08:59:44 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
090622 8:59:45 InnoDB: Started; log sequence number 0 46409
090622 8:59:46 [Note] Event Scheduler: Loaded 0 events
090622 8:59:46 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘5.1.34-log’ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 SUSE MySQL RPM
The last line in the log caught my attention, but I’m not sure what to do with it.
Thank you in advance for the help!