sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysqld stop
sudo mysqld_safe --skip-grant-tables &
mysql -u rootMySQL and MariaDB include two command-line tools that you can use to quickly backup and restore databases. The mysqldump tool is used to export the contents of a database to a text file, while the mysql client can be used to import data from a text file into a MySQL/MariaDB database.
To backup a MySQL/MariaDB database from the command line, follow these steps:
- Launch a new Windows command shell using the "Shell" button in the XAMPP control panel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', | |
| 'AO' => 'Angola', | |
| 'AI' => 'Anguilla', | |
| 'AQ' => 'Antarctica', | |
| 'AG' => 'Antigua And Barbuda', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ***************************************************************************** | |
| # CODING STYLE > MAKING YOUR CODE READABLE | |
| # ***************************************************************************** | |
| # 1. Avoid abbreviating variable names. | |
| # 2. Write out your function argument names. | |
| # 3. Document your classes and methods. | |
| # 4. Comment your code. |
NewerOlder