MySQL 1449: the user specified as a definer (‘root ‘@’%) does not exist solution
Sqlexception: access denied for @’localhost ‘(using password: no)
Sqlexception: access denied for @’localhost ‘(using password: no)
Solutions grant all privileges on *. * to joe@localhost identified by ‘1’;
flush privileges;
Log in with Joe 1
Attached:
mysql> Grant permission 1, permission 2,… Permission n on database name
permission 1, permission 2,… Permission n represents 14 permissions, such as select, insert, update, delete, create, drop, index, alter, grant, references, reload, shutdown, process and file
when permission 1, permission 2,… Permission n is replaced by all privileges or all, it means that the user is given all permissions
when the database name and table name are replaced by *. *, it means that the user is given permission to operate all the tables of all databases on the server
the user address can be localhost, IP address, machine name and domain name. You can also use ‘%’ to indicate a connection from any address
“connection password” cannot be empty, otherwise the creation fails
mysql> grant select,insert,update,delete,create,drop on vtdc.employee to [email protected] identified by ‘123′;
assign the user Joe from 10.163.225.87 the permission to select, insert, update, delete, create and drop the employee table of the database vtdc, and set the password to 123
mysql> grant all privileges on vtdc.* to [email protected] identified by ‘123′;
the user Joe from 10.163.225.87 is assigned permission to perform all operations on all tables of the database vtdc, and the password is set to 123
mysql> grant all privileges on *.* to [email protected] identified by ‘123′;
assign the user Joe from 10.163.225.87 the permission to operate all tables in all databases, and set the password to 123
mysql> grant all privileges on *.* to joe@localhost identified by ‘123′;
assign the local user Joe permission to perform all operations on all tables in all databases, and set the password to 123
Similar Posts:
- ERROR 1044 (42000): Access denied for user ‘root’@’localhost’
- mysql ERROR 1044 (42000): Access denied for user ‘
- [Solved] MYSQL8.0 Error: the user specified as a definer (‘root’@’%’) does not exist
- When Navicat connects to a database on a server, there is an error prompt: 1130 ‘* *’ host is not allowed to connect to this MySQL server
- Mysqldump backup problems got error: 1045, error 1045 (28000), got error: 1449
- [Solved] OpenStack Error: MariaDB ERROR 2002 (HY000): Can’t connect to MySQL server on ‘controller’ (115)
- MYSQL Login Error: mysqladmin: connect to server at ‘localhost’ failed
- [Solved] MYSQL ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘mys…
- MySQL Connect Error: Authentication plugin ‘caching_sha2_password’ cannot be loaded
- Solve the problem of unknown column ‘password’ in ‘field list’ in MySQL