Kurt Peek Kurt Peek - 10 months ago 41
MySQL Question

What is meant by "Path to MySQL bin" in the context of Wordpress for Google App Engine?

I'm trying to follow the Quick Start Wordpress for Google App Engine guide. One of the instructions reads:

Using MySQL, run the following commands to set up your local database. Note that you will be prompted for your password and enter the MySQL shell after the fist command:

{PATH_TO_MYSQL_BIN}/mysql -u root -p
create database wordpress_db;

I am not quite sure what location is meant by
in this context. I would expect it is where the MySQL files are stored, so following http://www.cyberciti.biz/faq/mysql-datadir-files-stored-unix-linux/, I tried the
ps -eo cmd,args | grep mysql

/usr/sbin/mysqld --daemoniz /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
sudo mysqld_safe --init-fil sudo mysqld_safe --init-file=/home/me/mysql-init
sudo mysql sudo mysql
mysql mysql
grep --color=auto mysql grep --color=auto mysql

The results that show up do not appear to be directories. I also don't have a
directory as mentioned on that site.

In short, how do I find the directory to perform the
create database wordpress_db
command in?

Answer Source

You don't have to worry about the PATH_TO_MYSQL_BIN, if you are using a Linux instance. You just have to create the MySQL database. For that open a terminal and enter "mysql -u root -p" command to access the MySQL console.

Then you will be able to create databases using "create database wordpress_d" command.