Hi, my first time posting on a newsgroup. anyway, let's cut to the
chase.
I'm trying to migrate mysql database form one server to another server.
So I copied the data from /var/lib/mysql to the other one.. and use
INSERT INTO from the old database to the new one..so the Top level
'mysql' database has all the correct users and password and priviledge.
however, when one of the php website trying to load..it'll say
Unable to login to the MySQL database 'tikiwiki' on 'localhost' as user
'user1'
Go here to begin the installation process, if you haven't done so
already.
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)
However, when i do it on shell.
shell> mysql -u user1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use tikiwiki;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> status
--------------
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
Connection id: 8
Current database: tikiwiki
Current user: user1@localhost
Current pager: stdout
Using outfile: ''
Server version: 3.23.58
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 1 min 24 sec
Threads: 1 Questions: 227 Slow queries: 0 Opens: 179 Flush tables: 1
Open tables: 64 Queries per second avg: 2.702
--------------
mysql> quit
looks like it's working?? mysql can connect? but the stupid PHP cannot?
WTF!?
Any help is appreciated, thanks.
chase.
I'm trying to migrate mysql database form one server to another server.
So I copied the data from /var/lib/mysql to the other one.. and use
INSERT INTO from the old database to the new one..so the Top level
'mysql' database has all the correct users and password and priviledge.
however, when one of the php website trying to load..it'll say
Unable to login to the MySQL database 'tikiwiki' on 'localhost' as user
'user1'
Go here to begin the installation process, if you haven't done so
already.
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (13)
However, when i do it on shell.
shell> mysql -u user1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use tikiwiki;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> status
--------------
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
Connection id: 8
Current database: tikiwiki
Current user: user1@localhost
Current pager: stdout
Using outfile: ''
Server version: 3.23.58
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 1 min 24 sec
Threads: 1 Questions: 227 Slow queries: 0 Opens: 179 Flush tables: 1
Open tables: 64 Queries per second avg: 2.702
--------------
mysql> quit
looks like it's working?? mysql can connect? but the stupid PHP cannot?
WTF!?
Any help is appreciated, thanks.
Comment