|
ru en
|
|||
MySQL — databases creation and managementContents:1. General information
4.1 Creation of backup copy (dump export) of database
4.2. Restoration of database from backup copy (dump import) 4.3. Changing database code by default 5. Work with database from command line
2. Connection to database server The information for connection to database server can be viewed in section "DBMS" — "Users" of the control panel.
Note that in case of password change of MySQL user, websites which are placed on hosting and employ this MySQL user cannot operate properly, until password in scripts is changed to a new one. For each website we recommend creating a separate database. If envisaged by the selected plan, we recommend creating separate database users. To create a new database, go to section "DBMS" — "Databases" of the control panel.
Database created. You may use it for placement of a new website. PHPMyAdmin application allows working with databases through the browser.
To access PHPMyAdmin go to section "DBMS" — "PHPMyAdmin" of the control panel (https://www.r01.ru, section "Account manager").
4.1. Creation of database backup copy (dump export) To create backup copy, go to PHPMyAdmin interface.
The file with database contents will be downloaded to your computer. To work with large volume databases we recommend using connection from the command line. 4.2. Restoration of database from backup copy (dump import) We recommend creating new database (see item 3.) and importing dump to it.
After database is imported, change in configuration files the name of the database and check operation. To work with large volume databases we recommend using connection from the command line. 4.3. Changing database code by default To change default database coding, for example to UTF-8, go to PHPMyAdmin interface.
5. Work with database from command line Connection to hosting via SSH enables remote operation with the databases, with no need to download dumps to your computer. Operation with database dumps with a size more than 64 MB is possible only from the command line.
5.1. Creation and restoration of database dump from the command line To create database dump run the following command:
where: dbhost — database server address, For dump import into database run the following command
We recommend first to create new database (see item 3.) and import dump to it.
After database is imported, change in configuration files the name of the database and check operation. |
||||
Copyright © 2000-2024 Registrar R01 |
Information: info@r01.ru
Support: support@r01.ru Office: 1 Bolshoy Gnezdnikovsky Lane, building 2, Moscow (Tverskaya metro station, entrance No. 9, Voznesensky business center) |