This can help you:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '%password%' WITH GRANT OPTION;
Execute it with command line or some GUI tool.
Don’t forget to replace %password%
with real password.
More Related Contents:
- SQL syntax error in "insert into 'keys'(a,b,c,d,e) values(?,?,?,?,?)" [closed]
- Hours and seconds are lost when storing a date in the database [closed]
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Solving a “communications link failure” with JDBC and MySQL [duplicate]
- Multiple queries executed in java in single statement
- ClassNotFoundException com.mysql.jdbc.Driver [duplicate]
- Java: Insert multiple rows into MySQL with PreparedStatement
- ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long on connect to MySQL
- Cannot issue data manipulation statements with executeQuery()
- Handling MySQL datetimes and timestamps in Java
- Closing JDBC Connections in Pool
- No suitable driver found for ‘jdbc:mysql://localhost:3306/mysql [duplicate]
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure [duplicate]
- When to close Connection, Statement, PreparedStatement and ResultSet in JDBC
- “Loading class com.mysql.jdbc.Driver … is deprecated” message
- How to configure Tomcat to connect with MySQL
- Retrieve an Image stored as BLOB on a MYSQL DB
- Can I execute multiple queries separated by semicolon with MySQL Connector/J? [duplicate]
- runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- mysql prepared statement error: MySQLSyntaxErrorException
- ‘0000-00-00 00:00:00’ can not be represented as java.sql.Timestamp error
- SQL Error: 0, SQLState: 08S01 Communications link failure [duplicate]
- MySQL connector error “The server time zone value Central European Time” [duplicate]
- How to correctly write UTF-8 strings into MySQL through JDBC interface
- java.sql.SQLException: Before start of result set [duplicate]
- Stumped SQL Exception for JDBC
- A datetime equivalent in java.sql ? (is there a java.sql.datetime ?)
- How to connect to a remote MySQL database with Java?
- The Network Adapter could not establish the connection when connecting with Oracle DB
- A persistent connection with JDBC to MySQL