Cannot access mysql database

Cannot access mysql database

We are deploying OpManager to a number of sites, each with similar configs, but with a few tweaks.  As a result I was trying to look through the sql database to see if we could script some steps to save time when we deploy the program.  However, I am having troubles logging in.  I use the command "./mysql -u  root -P 13306 OpManagerDB" fromt he mysql subfolder in the OpManager folder.  I am receiving the following error:
 
ERROR 2002 {HY000}: Can't connect to local MySQL server through socket '/tmp/mysql.sock' {2}

Just seeing if someone can help me with logging into the sql server (and any tips on editing the sql database through scripts or how the database is laid out).

 
Thanks,

                  New to ADSelfService Plus?