Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22670 - mysql -u root -p --opt mailsql < genericmailsql.sql: mysql: unrecognized option `--opt'
Summary: mysql -u root -p --opt mailsql < genericmailsql.sql: mysql: unrecognized opti...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Virtual-mail HOWTO (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ken Nowack (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 04:35 UTC by Kenneth Jakobsen
Modified: 2003-06-12 11:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Jakobsen 2003-06-12 04:35:27 UTC
When trying to follow the guide, the following option returns an error:

# mysql -u root -p --opt mailsql < genericmailsql.sql

mysql: unrecognized option `--opt'

If i remove one of the dashes it stops complaining, but as i'm totaly MySQL n00b
i tend to get lost when i can't just follow the guide i'm reading.
Dunno the importance of this minor mistake, but i'm getting stuck for a good
word recently.. ;o/

Reproducible: Always
Steps to Reproduce:
1. emerge mysql
2. mysql_install_db [Which btw doesn't seem to exist in /usr/sbin as the guide says]
3. start mysql
4. set proper passwords for mysql
5. mysqladmin -u root -p create mailsql
6. mysql -u root -p --opt mailsql < genericmailsql.sql 



Actual Results:  
/usr/sbin/mysql_install_db [Wrong path. I removed the path and it worked]
After having set passwords for the mysql, the next steps worked fine up until:

# mysql -u root -p --opt mailsql < genericmailsql.sql

mysql: unrecognized option `--opt'


Expected Results:  
Added the sql fragment and return without an error.


gentoo-pdc root # mysql -u root -p --opt mailsql < genericmailsql.sql
mysql: unrecognized option `--opt'
Comment 1 Ken Nowack (RETIRED) gentoo-dev 2003-06-12 11:12:50 UTC
You're right. I think this used to be correct as it is how I set this up initially. But now it seems htings have changed.

Thanks for reporting this bug, it's been fixed in the document.