The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
mysql: command not found
I'm fairly new to freeBSD and what not. I have played around with the unix command line before. I've been trying to run the mysql command to reload a sql dump, I've tried it in the dir of the sql dump and the dir with the mysql/mysqldump commands. No matter what I try this is what I get
-bash: mysql: command not found Help please |
#2
|
|||
|
|||
It means mysql is not in the path. Try:
Code:
locate mysql |
#3
|
|||
|
|||
if I run that command it finds alooooot of matches, so i try locate "mysqldump" to get a shorter list ( /usr/local/psa/mysql/bin ) and i make that the working directory, and run the "mysql -u username -p dbnam < /usr/local/........./*.sql
and it still comes back with "mysql: command not found" |
#4
|
|||
|
|||
Try ./mysql when you're in the directory.
|
#5
|
|||
|
|||
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
|
#6
|
|||
|
|||
At this point, it's a MySQL issue rather than a shell issue. Make sure that you are connecting to MySQL as a valid user. When in doubt, see what your config.php is using.
|
#7
|
|||
|
|||
I have a valid mysql user setup, but I cannot log into the shell with that login. Right now I am testing moving boards so the config.php is not edited yet.
|
#8
|
|||
|
|||
Are you using ./mysql -uusername -p dbname, then entering the proper password when asked?
|
#9
|
|||
|
|||
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 998 to server version: 3.23.56 btw .... thank you for your help! |
#10
|
|||
|
|||
just for the hell of it I did the ./ before the command to run the dump, it worked great .....
whats the "./" for just so I know for future reference |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|