How to allow the user "sonia" to connect to the server from localhost using the password "passwd". Login as root. Switch to the mysql db. Give privs. Update privs.
Answer / Sanjay Kumar Jain
To allow the user 'sonia' to connect to the server from localhost using the password 'passwd' in MySQL, you need to login as root, switch to the mysql database, grant privileges using GRANT command, and update privileges using FLUSH PRIVILEGES command. Here's an example: `mysql -u root; CREATE USER 'sonia'@'localhost' IDENTIFIED BY 'passwd'; GRANT ALL PRIVILEGES ON your_database_name.* TO 'sonia'@'localhost'; FLUSH PRIVILEGES;`
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the architecture models of SQL Server?
What is mysqli_result?
How we can get the current date in mysql?
List some comparisons operators used in mysql?
Is null in mysql?
How do I find mysql database?
How MySQL Optimizes DISTINCT?
How many columns can a mysql table have?
How do I create a mysql username and password?
How do you kill a long running query in mysql?
How do I grant privileges to a user in mysql phpmyadmin?
How is myisam table stored?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)