Author Topic: Unknown database  (Read 10126 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Unknown database
« on: October 17, 2017, 08:44:30 AM »
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!

Offline
***
Re: Unknown database
« Reply #1 on: October 17, 2017, 03:48:19 PM »
Try:
Code: [Select]
cat /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
cat /root/.my.cnf
Check if both passwords match. If yes, try this:
Code: [Select]
mysql -u root -pPASSWORDFROM/root/.my.cnf
Once you are inside mysql, type this:
Code: [Select]
show databases;
You are supposed to see something like this:
Code: [Select]
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:
Code: [Select]
quit;
Waiting for your reply.
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
*
Re: Unknown database
« Reply #2 on: October 18, 2017, 02:22:07 AM »
Thanks

Offline
*
Re: Unknown database
« Reply #3 on: May 02, 2019, 09:51:08 AM »
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