[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

What's wrong with MySQL Installation?

Asked by yuzh in MySQL Server

Tags: user

Hi Experts,

    Here's my story:

I download Mysql mysql-standard-4.0.17-sun-solaris2.8-sparc-64bit.tar.gz
from:

http://www.mysql.com/downloads/mysql-4.0.html

and installed it on my Sun Solaris 8 ( SunOS myboxname 5.8 Generic_108528-27 sun4u
sparc) box.

I did the followings for the installation:

1) Create user - mysql on the system:

mkdir /mysql
groupadd mysql
useradd -g mysql -c 'Mysql' -d /mysql -s /bin/false mysql
chown mysql:mysql /mysql

# unpack mysql use GNU tar
cd /usr/local
tar -zxvf mysql-standard-4.0.17-sun-solaris2.8-sparc-64bit.tar.gz
ln -s mysql-standard-4.0.17-sun-solaris2.8-sparc-64bit mysql

#Post installtion:
scripts/mysql_install_db
chown -R root:mysql /usr/local/mysql
chgrp -R mysql /usr/local/mysql/data

bin/safe_mysqld --user=mysql &
(support-files/mysql.server start)

Then I run the following test: (as root)

mysqlshow
+-----------+
| Databases |
+-----------+
| test      |
+-----------+

It looks ok so far.

Then I set a PASSWORD FOR THE MySQL root USER:
./bin/mysqladmin -u root password 'new-password'

No problem with the above command, the new password is set for MySQL root
USER.

But when I did:
./bin/mysqladmin -u root -h testbox password 'new-password'
./bin/mysqladmin: connect to server at 'testbox' failed
error: 'Host 'testbox.abc.com' is not allowed to connect to this MySQL server'


After I set the new password, I cannot run mysqlshow as MySQL root USER:

root@testbox[/usr/local/mysql] 168# mysqlshow
mysqlshow: Access denied for user: 'root@localhost' (Using password: NO)

But I still can run it as a normal user (a user in mysql group):
yuzh@testbox[/usr/local/mysql] 178# mysqlshow
+-----------+
| Databases |
+-----------+
| test      |
+-----------+

As MySQL root user, I can do:
mysql -u root -pnew-password

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 16 to server version: 4.0.17-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

It look like I still can use MySQL!

Could you please tell me how to fix the "Access denied" problem, and how to
create the "user" database so that the user can use mysql.

Thanks
     yuzh

PS: I'm a Systems Administrator, but I have not used SQL for a long time,can
    not remember MySQL syntax.
    The last time I installed MySQL 3.22.32 from source for Solaris (X86) was
    more than a year ago, this is the first time I install it use binary package.

    It is now Perth time Fri Feb  6 16:03:40 WST 2004, I'll read all the comments next
Monday, thank you very much for your help.
[+][-]02/07/04 09:32 AM, ID: 10298761Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: MySQL Server
Tags: user
Sign Up Now!
Solution Provided By: Zontar
Participating Experts: 3
Solution Grade: A
 
[+][-]02/06/04 09:43 AM, ID: 10291694Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/07/04 05:03 AM, ID: 10297770Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/08/04 05:58 PM, ID: 10306553Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/08/04 08:00 PM, ID: 10307146Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/08/04 08:22 PM, ID: 10307243Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/08/04 09:15 PM, ID: 10307491Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/08/04 09:34 PM, ID: 10307575Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/08/04 11:01 PM, ID: 10307853Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/09/04 05:39 AM, ID: 10309728Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/09/04 06:59 AM, ID: 10310405Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/09/04 10:23 AM, ID: 10312730Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/04 12:57 AM, ID: 10330418Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/04 05:39 AM, ID: 10331968Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/11/04 06:30 AM, ID: 10332373Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/11/04 09:18 AM, ID: 10334143Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/11/04 07:33 PM, ID: 10339087Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92