Unknown database

Started by minhjohn, October 17, 2017, 08:44:30 AM

Previous topic - Next topic

minhjohn

I have problem it's:

Warning: [obfuscated](): (HY000/1049): Unknown database 'root_cwp' in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0


Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: sh /scripts/restart_cwpsrv

**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf


Warning: [obfuscated]() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:

After access root/password then show bug.Please help me. Thanks a lot!

darkness

Try:

cat /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
cat /root/.my.cnf

Check if both passwords match. If yes, try this:

mysql -u root -pPASSWORDFROM/root/.my.cnf

Once you are inside mysql, type this:

show databases;

You are supposed to see something like this:

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| blogger_1389624    |
| information_schema |
| mysql              |
| performance_schema |
| postfix            |
| root_cwp           | <-----------
| roundcube          |
+--------------------+
7 rows in set (0.00 sec)

If you see "root_cwp" then the error is somewhere else. Check both files if they have password.
Then type:

quit;

Waiting for your reply.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...


thanhblog.info

Quote[root@vps185672 ~]# mysql -u root -pPASSWORDFROM/root/.my.cnf
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@vps185672 ~]#

My vps! Can you help me? Tks