Database Administration

Tutorials

  • Restore MySQL backup from the terminal

    Restore MySQL backup from the terminal

    Efficiently import MySql backup database records from an .sql file using the mysql command from the terminal. A quick and direct approach to restore MySQL backup files from the terminal. For example. mysql -uNAME -p DATABASE < database_backup.sql Enter the PASSWORD when prompted. Enter password: Where. NAME is the user who has access to the…

  • Grant Privileges to MySQL User

    Grant Privileges to MySQL User

    Assign privileges and roles to MySQL user accounts and roles using MySQL GRANT statement. This is to be able for a MySQL user to perform MySQL basic operations such as add, edit, delete, and select records from a MySQL Database, a permission should be granted to authorize access to a MySQL Database to perform the…

  • Create MySQL Database User

    Create MySQL Database User

    Create a MySQL user with password to access a MySQL database from a specific host to do things like adding, updating, deleting, and listing database records. Requirements: MySQL MySQL User with Password MySQL Host How To Create A MySQL User From The Terminal. Access the MySQL database first, and execute the code below once login…

  • Access MySQL Database From Terminal

    Access MySQL Database From Terminal

    Directly access a MySQL database from the terminal. Connect with the given username, password, and host straight from the command line. Know more about the common errors when connecting to MySQL database. Requirements: MySQL MySQL User with Password MySQL Host How To Connect To MySQL Database From The Command Line Terminal. Step 1. Open a…

  • Update MySQL Records Using Replace Function

    Update MySQL Records Using Replace Function

    Update DATABASE records directly using the REPLACE() function in MySQL. No scripting or programming language needed. Can be executed in any MySQL visual database design tool, or make the modification directly from shell. Requirements: MySQL Consider below as the employees TABLE inside a MySQL DATABASE. The objective is to update MySQL data records by replacing…

  • Replace A String In MySQL

    Replace A String In MySQL

    Use the MySQL string function REPLACE() to replace occurrences of a specified string. It will return the original string with all occurrences of the search string replaced by the new string. This is how to replace a string in MySQL. Requirements: MySQL The objective is to replace all spaces with a dash from all the…