Skip to main content

Comments

8 comments

  • cPanelMichael
    Hello :) You can access your server via SSH as root and run the following command: mysql database_name < /path/to/database.sql
    Or, if you need to complete the task as the username, you can run: mysql -u username -p database_name < /path/to/database.sql
    Thank you.
    0
  • vivithemage
    I do that, but nothing happens after I enter the PW really. root@xx[/home/seacoast/www/SQL_Dumps]# mysql -u seacoast_bigdump -p seacoast_typ32 < seacoast_typ32.sql Enter password: root@xx[/home/seacoast/www/SQL_Dumps]#
    0
  • cPanelMichael
    That indicates the database dump was successfully imported into the database. Thank you.
    0
  • vivithemage
    Nothing shows up, I wonder if the dmp is empty....
    0
  • cPanelMichael
    [quote="vivithemage, post: 1461082">Nothing shows up, I wonder if the dmp is empty....
    It's possible. You may want to review the dump file to see what it's contents are. Thank you.
    0
  • vivithemage
    editing it in vi, all I see is: -- MySQL dump 10.11 -- -- Host: localhost Database: bigdump -- ------------------------------------------------------ -- Server version 5.0.96-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
    0
  • cPanelMichael
    Yes, it looks like that database dump does not contain actual database content. Thank you.
    0
  • vivithemage
    Thanks, that's probably the issue.
    0

Please sign in to leave a comment.