The Ignoring query to other database problem occurs in MySQL, ignoringdatabase
When mysql is used today, any input command will output:
Ignoring query to other database
This error message is very strange. Later, we found that the-u parameter was missing when logging on to the database ..
The correct command is:
Mysql-uroot-p
I entered:
Mysql-root-p
Add-u.
Mysql configuration problems in ubuntu. You cannot use a database
The "-u" parameter does not exist when you connect to mysql.
[Root @ vps ~] # Mysql-hlocalhost-root-p
Reconnect to mysql and add the-u parameter. Everything works.
[Root @ vps ~] # Mysql-hlocalhost-uroot-p
No database selected in php mysql
Put mysql_select_db ($ database_conn, $ conn); put it behind mysql_pconnect.
If you refresh a few times, it will become normal. I assume that after the POST operation is performed, mysql_select_db ($ database_conn, $ conn) is executed );
Because persistent connections are used, the program will automatically find the last available connection, so it is normal.