Create a new database and create a user for wordpress

Create a database:

mysql -u root -p

MariaDB [(none)]>


Create a user:
MariaDB [(none)]>

CREATE USER 'username'@'localhost' IDENTIFIED BY 'passwordinplaintext';

Grant privileges:

GRANT ALL PRIVILEGES ON mydb.* TO 'username'@'localhost';

Joel G Mathew

Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an Android and Linux enthusiast. His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets. When away from the tech world, Joel is a practising ENT Surgeon.

Leave a Reply

Your email address will not be published. Required fields are marked *