Answers for "upload sql database in devilbox"

0

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
Posted by: Guest on January-13-2022

Code answers related to "upload sql database in devilbox"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language