Table of Contents

Portable MySQL setup

  1. the MySQL is just the original MySQL in binary package format
  2. initial data folder
    ./scripts/mysql_install_db
  3. give data folder permission
     sudo chown -R mysql data/
  4. start demon
    sudo ./bin/mysqld_safe --defaults-file=./etc/my.cnf  -h 127.0.0.1
    1. or try
      ./bin/mysql_upgrade --defaults-file=./etc/my.cnf  -h 127.0.0.1 -u root -p
  5. test
    mysql --defaults-file=./etc/my.cnf -h 127.0.0.1 dbName
  6. initial password
    mysqladmin -u root password MyPass
  7. stop server
    mysqladmin --defaults-file=./etc/my.cnf -h 127.0.0.1 -u root -p shutdown
  8. note: .frm file is the database file

config files

Tools and Software