I have created a new raw Droplet (raw one), then using my command line I installed LAMP (installed MySQL server & PHP).
I brought my Drupal (databse.sql & public_html folder as Zip) from other hosting service by (wget).
I was able to unzip my public_html … and that works just fine.
But I am unable to import my database.sql to MySQL server (I don’t prefer to install and use PhpMyAdmin), I am new to this, and here are some questions:
1- Where should I put my database.sql file before importing? 2- Should I run mysql> command OR I just use my terminal shell and run “mysql -u -p database < database.sql… etc”? 3- how can I test that MySQL server is working good? how to test that my database.sql file has tables on it?
I need to ask this question because I want to have a good idea toward this action, you can say, I need your any knowledge regrading to that.
Any help is much appreciated !
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!