On a server machine like datalab, we want to set up MySQL server for our own use. Unfortunately, we don't have root access and there can be default configuration files present on the machines from previous installations that mess us up. So we'll set it up as a “standalone” installation for our own use.
Want "Community Server". May have to register a free account
scripts/mysql_install_db –
If it reports stopping, check the error log file.
bin/mysqladmin version –socket=/scratch/stewarm1/mysql/mysql.sock
see http://dev.mysql.com/doc/refman/5.5/en/unix-postinstallation.html
For the error message
Try [http://www.thegeekstuff.com/2010/08/allow-mysql-client-connection/ this]:
[http://stackoverflow.com/questions/13731514/host-is-not-allowed-to-connect-to-this-mysql-server-when-making-a-local-connecti Or for all remote hosts]:
MySQLdb is zombieware. Try [https://github.com/PyMySQL/PyMySQL PyMySQL] instead PyMySQL is designed as drop-in replacement (pymysql.install_as_MySQLdb()), but it seems easier to use with its own interface:
example http://yashh.com/PyMysql/