Today, I use phpstudy to open the MySQL database, and then connect to the database failed: the report is 1049, which means that the database does not exist.
The error is as follows
. In this CMD window, you can go all the way up to the time when you just connected the data
to see if your database name is right, but my database name is wrong
config file, which contains the
default.json file. There is a
database, fill in your own correct database name in the database, and then connect to the database after saving it
this way means success, and I hope it will help you with your mistakes!!!
Read More:
- Solve the database connection failure of Discuz! Database error (1045) notconnect Forum
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- Mysql database error (communications link failure)
- node.js Server MySQL database connection timeout (error: connect etimeout)
- MySQL local connection Error 1130_ The solution of MySQL 1130 error report when remote connection through Navicat for MySQL
- How to solve MySQL error 1049 (42000): unknown database ‘database’
- The problem of master-slave database synchronization stop caused by MySQL deleting data
- An error is reported when kettle connects Oracle database and MySQL database
- Solve the problem of MySQL database report 1055 error
- ERROR 1010 (HY000): Error dropping database (can’t rmdir ‘./myapp’, errno: 39)
- Solve MySQL installation error: initializing database prompts an error when installing mysql
- (error when importing database): MySQL 2006-mysql server has gone away
- SQL exception handling – MySQL error 1005 (HY000): can’t create table ‘TMP’ (errno: 13)
- MySQL: if the remote connection using navicatip fails, prompt “is not allowed to connect to this MySQL server”
- About error 1005 (HY000) in MySQL: can’t create table ‘_______ ‘(errno: 150) fool’s plan
- MySQL Workbench: Error Code: 2013. Lost connection to MySQL server during query solution
- MySQL appears: ERROR 1049 (42000): Unknown database’XXX’ solution
- How to view the version of MySQL database
- MySQL error: can’t create table ‘..’( errno:150 )Solutions
- Could not create connection to database server. Attempted reconnect 3 times. Giving