Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: install system images sdkmanager 
Shell :: sequlize create new migraion 
Shell :: android turn off emulator 
Shell :: count files linux 
Shell :: psycopg2 error install 
Shell :: change git remote 
Shell :: git ignore remove 
Shell :: delete distro 
Shell :: set selinux centos 
Shell :: tsc init 
Shell :: bash check if package is installed 
Shell :: powershell download a file from url 
Shell :: angular cli generate new module 
Shell :: show saved wifi password windows 11 
Shell :: git change crlf to lf 
Shell :: clear entrie git cache 
Shell :: docker Problem with the CMake installation, aborting build. CMake executable is cmake 
Shell :: uninstall mongoose using npm 
Shell :: ubuntu create archive split 
Shell :: heroku cli delete app 
Shell :: see installed packages pacman 
Shell :: stop apache service 
Shell :: tar gz compress extract 
Shell :: keyboard abnt2 arch linux 
Shell :: stash unstaged changes 
Shell :: node_modules not being ignored git 
Shell :: how to install .deb file in ubuntu from terminal 
Shell :: chmod files 644 directories 755 
Shell :: shell single line for loop syntax 
Shell :: add ssh key to ssh agent 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =