Re: MySQL permission

From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 05/26/05


Date: Thu, 26 May 2005 07:31:01 -0500

On Thu, 26 May 2005 12:39:39 +0100, Timothy Murphy wrote:

> Dave Uhring wrote:
>
>> If you had bothered to read and implement the instructions presented to
>> you after installing the initial database you would not have this problem.
>>
>> echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
>> echo "This is done with:"
>> echo "$bindir/mysqladmin -u root password 'new-password'"
>> echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'"
>> echo "See the manual for more instructions."
>
> I don't recall getting any such message on my system (Fedora-3).
> What exactly do you mean by "installing the initial database"?
> I just gave the command "sudo yum install mysql-server".

It is generally necessary to execute mysql_install_db; perhaps your distro
has already done that. It certainly was necessary when I set up a
Slackware server using a locally compiled rpm from RHES-3, also on OpenBSD
and Solaris servers.

> However, I have set a password for root
> on my MySQL server (alfred), and have not had any problems on that score.
>
> On the other hand, I have had problems setting a password for root
> on the machine (martha) which I am using to access the server.
>
> I take it the second mysqladmin above is intended for this purpose?
> [It seems to me incidentally that there should be some explanation
> if two different commands are given.
> Are they meant to be alternatives?
> Do you consider that to be obvious?]

Mysql sees localhost as different from $hostname, hence the -h argument.
Yes, it's obvious.

> mysql> grant all privileges on *.* to tim@martha.murphy.ie
> identified by 'tim';
> Query OK, 0 rows affected (0.00 sec)

> Am I right in thinking that this will give user tim
> on the client machine access to everything on the server?

It should. I have not granted all privileges to *.* to remote users,
only to their own databases.



Relevant Pages

  • Create SharePoint Portal failed.
    ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
    (microsoft.public.sharepoint.portalserver)
  • Re: ADO Connection Timeout
    ... to the central server, but you are willing to live with periods where it ... i.e. a local database or even a text file. ... to function until the connection can be restored to the server. ...
    (microsoft.public.data.ado)
  • Web Developers - Happy Hearts And HDTV! - Lockergnome
    ... Certificate on your MSIIS Web server. ... getting data from a database is only half the problem. ... Zend recently started a series about building rock solid code in PHP. ... which provides bulk database conversion. ...
    (freebsd-questions)
  • Re: TNS could not resolve the connect identifier
    ... This database resides on Machine A. ... The Web server is running on Machine B. ... Using tnsping is not as good as using a real connection such as via ... client (note that this is terminology that appears in the 10g R2 ...
    (comp.databases.oracle.server)
  • Config for OLTP system
    ... extrenal disks fo the 60GByte database server. ... IBM Informix Dynamic Server Configuration Parameters ... # BUFFSIZE - OnLine no longer supports this configuration parameter. ...
    (comp.databases.informix)