Bug #68565 | We are trying to Install Mysql on our Sun OS sparc but facing installation issue | ||
---|---|---|---|
Submitted: | 4 Mar 2013 21:21 | Modified: | 18 Mar 2013 17:06 |
Reporter: | Dharam bhat | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S3 (Non-critical) |
Version: | mysql-5.6.10-solaris10-sparc-64bit | OS: | Solaris (SunOS wswebddal1 5.10 Generic_147440-25 sun4v sparc SUNW,Sun-Fire-T200) |
Assigned to: | CPU Architecture: | Any |
[4 Mar 2013 21:21]
Dharam bhat
[5 Mar 2013 20:43]
Erlend Dahl
I think you need to invoke the mysql_install_db script with "--basedir=/apps/mysql5.6/mysql-5.6.10-solaris10-sparc-64bit ....", that is, with the options and arguments written without spaces. If I try something like ./scripts/mysql_install_db --no-defaults -- basedir = <basedir> instead of ./scripts/mysql_install_db --no-defaults --basedir=<basedir> then I see the same behaviour as you do. Please try out the above suggestion.
[5 Mar 2013 20:51]
Dharam bhat
Hi Erlend, First thanks for your response! Actaully i was able to complete the installation after removing spaces and defining some environment variables like PATH and TMP_DIR. However,I did all installation using non root user and i am able to run below. mysql> select curtime() -> ; +-----------+ | curtime() | +-----------+ | 15:48:34 | +-----------+ 1 row in set (0.00 sec) But,i am getting access denied for other sytem tables like user etc. Is it necessary to login as a root to set up all users or is there a workaround? Also, i am trying to find a document to understand where to name/catalog this DB so we can connect through clinets as well with user accounts likewe do in oracle or Db2.
[6 Mar 2013 7:49]
Erlend Dahl
I would refer you to "User Names and Passwords" in http://dev.mysql.com/doc/refman/5.6/en/user-names.html Please note that MySQL account names (like the initial "root") have nothing to do with Unix login names.
[11 Mar 2013 20:15]
Dharam bhat
Hi Erlend, I am able to do below and can see i am logged on to mysql with the default user that i used for installation.Also i am able to run sysdate etc queries,so that part is working. mysql> select user(); +-------------------+ | user() | +-------------------+ | abcadm@localhost | +-------------------+ But when i try to set up this user or any other ,i am getting access denied error. mysql> select * from mysql.db; ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'db' mysql> select * from mysql.user; ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'user' So this is becoming chichkena nd egg issue for me.I know i need to set up users/passwords but not sure how to get access in first place to my default user. Please help!
[18 Mar 2013 17:06]
Dharam bhat
Works now after using root user .