Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

upload sql database in devilbox

# Navigate to the Devilbox directory
host> cd path/to/devilbox

# Enter the PHP container
host> ./shell.sh

# Create new database if not present
mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_wp;'
# OR START MYSQL THEN CREATE DATABASE
mysql -u root -h mysql
CREATE DATABASE my_database

# Start the import
mysql -h mysql -u root -p my_db_name < /shared/backups/mysql/my_db_name.sql
Source by devilbox.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #upload #sql #database #devilbox
ADD COMMENT
Topic
Name
5+6 =