Dumping a MySQL database

Note: Before proceeding, make sure you have the necessary permissions to access the MySQL database you want to dump. You should have at least read access to the database. 01. Open Terminal: Open your Linux terminal. You can usually find it in your applications or use keyboard shortcuts like Ctrl + Alt + T. 02. Login to MySQL: If your MySQL server requires authentication, you should log in first using the mysql command....

October 25, 2023 · 2 min · 282 words · Saman Wijesinghe

Easy MySQL Database Administration, Creating Users and Assigning Privileges

Connect to MySQL: You can connect to your MySQL server using the MySQL command-line tool or a database management tool like phpMyAdmin. To use the command-line tool, open your terminal and run: mysql -u root -p You’ll be prompted to enter the root user’s password. Create a MySQL Database: To create a new database, use the CREATE DATABASE statement. Replace <database_name> with the desired name of your database: CREATE DATABASE <database_name>;...

October 20, 2023 · 2 min · 301 words · Saman Wijesinghe

MySQL command for import an SQL file into a MySQL database

Open a terminal window on your Linux system. Log in to MySQL using the following command. You will need to provide the MySQL root or a user with appropriate permissions and the password when prompted. mysql -u your_username -p Replace your_username with your MySQL username. Once you’re logged in, you can select the database where you want to import the SQL file. For example: USE your_database; Replace your_database with the name of the database you want to use....

October 15, 2023 · 1 min · 153 words · Saman Wijesinghe