Changing path to basedir of mysql
- by shantanuo
When-ever I need to start mysql from command line, I need to cd to the base directory and then use mysql command as shown below:
# cd /home/ec2-user/percona-5.5.30-tokudb-7.0.1-fedora-x86_64/
# ./bin/mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
mysql>
How do I start mysql simply by typing "mysql" at command prompt?
I tried to export the path but it did not work.
export path=$PATH:/home/ec2-user/percona-5.5.30-tokudb-7.0.1-fedora-x86_64/bin/