Koozali.org: home of the SME Server

Can´t run mysql on SME 6

Eduardo Rivero

Can´t run mysql on SME 6
« on: December 17, 2003, 11:54:41 PM »
I can not start mysql on a 6.0 box

[root@server root]# mysql
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)

Any idea on how to solve this problem?

Tks

jb

Re: Can´t run mysql on SME 6
« Reply #1 on: December 18, 2003, 02:20:10 AM »
Did you happen to grant some priviledges to root to a mysql database.

If you did, you should be able to reset and re-sync the root password by doing
/sbin/e-smith/signal-event post-upgrade

I found the above in a previous post.

Good Luck,

JB

Eduardo Rivero

Re: Can´t run mysql on SME 6
« Reply #2 on: December 18, 2003, 02:29:50 PM »
I did it, but it still with the same error message

> /sbin/e-smith/signal-event post-upgrade
>
> JB

ken

Re: Can´t run mysql on SME 6
« Reply #3 on: December 22, 2003, 06:25:25 AM »
I think I just went through this.

Problem, you used root as a administrator and it doesn't actually accept it.

Follow the following how to exerpt from Abe Loveless but in place of "alumni" consider it your database.

>Creating the database:
>   1.  Run "mysql_setpermission" from the command line.  It will start a >program to
>       assist with database and user creation.  Use the following responses >to the questions:
>   
>      a.  Select Option 2 (Add a db and user privelege for that db)
>      b.  DB Name: alumni
>      c.  DB User: alumni
>      d.  Y (set a password)
>      e.  Type a password (be sure to remember it)
>      f.  Re-Type it to confirm
>      g.  Host:  localhost
>      h.  Add Another Host: No
>      i.  Implement this...:  yes
>      j.  0 to exit program

>   2.  Type the following (without quotes) to populate your new database
>          "mysql alumni < MySql-EN.sql"


>If I remember correctly, I had to use something like phpMyAdmin to view the >database and edit


Only because a database already exists I selected I believe it was option 3 to add a user and password and used a different name for instance "admin" .

I am forgetting one item which I had wrote down at work and that is how to show the databases in mysql.

I know you log into mysql and then type something like
show databases;

or something. I had a couple that I wouldn't work with because of using the word "root". But were fixed using option 3 and creating a new user and password.

Then if you can install  phpMyAdmin  you can see which ones you can actually connect to, to ensure they are working. Make sure you don't try to use root when setting up phpMyAdmin or you will have problems with it as well.

Now if someone can tell me how to erase the databases I set up that were not working and which I then duplicated with another name and went on to use?

Ken

Ray Mitchell

Re: Can´t run mysql on SME 6
« Reply #4 on: December 22, 2003, 09:20:16 AM »
ken wrote:
> Now if someone can tell me how to erase the databases I set
> up that were not working and which I then duplicated with
> another name and went on to use?

Connect using phpmyadmin, then list all the databases, then tick the checkbox next to the databases you want to delete, then click the Go button next to Drop Selected Databases.

Hope that helps
Regs
Ray

Roy

Re: Can´t run mysql on SME 6
« Reply #5 on: December 22, 2003, 02:00:43 PM »
Dear folks,

I have the same problem as Eduardo. When typing the /sbin/... command I still have the error. You said connecting with phpMyadmin should solve the problem because you can change the databases.

I can't even go to phpmyadmin, because then the error comes. I configured the config file of phpmyadmin with my passwords, but it doesn't help.

Roy

Ergin

Re: Can´t run mysql on SME 6
« Reply #6 on: December 22, 2003, 07:09:36 PM »
Resetting the root password
Suppose you've already changed the root password, not realizing why it's such a bad idea.  Here's how to set it back to where it belongs:

[root@e-smith /root] # /etc/rc.d/init.d/mysqld stop
[root@e-smith /root] # /etc/e-smith/events/actions/conf-mysql-password
[root@e-smith /root] # /etc/rc.d/init.d/mysqld start

Roy

Re: Can´t run mysql on SME 6
« Reply #7 on: December 22, 2003, 08:02:26 PM »
even that doesn't work.

I can't connect with mysql for some reason with my passwords. maybe I have to set another admin account on which mysql connects to. could that be an option?

Roy

Ken

Re: Can´t run mysql on SME 6
« Reply #8 on: December 23, 2003, 04:40:02 AM »
1) Log directly on to your server with Root and password

2) Login using the command: mysql  (if you can't do this I give up)

3) Use the command to list what you have: show databases: (make sure you use the semicolon at the enndo fo the command)

Even without being able to log into them you should be able to see the database or it has not yet been created

4) > Run "mysql_setpermission" from the command line. It will start a program to
 assist with database and user creation.

For a database that is in your database list but which you can't seem to connect to select I believe it is "3" which I believe is add user and password - try admin and a password

don't try to use root as a user when setting up databases if I am not mistaken.

Ken

Kobus Bensch

Re: Can´t run mysql on SME 6
« Reply #9 on: December 23, 2003, 11:38:13 PM »
Upgraded to SME 6 and this comment sorted my myphpadmin problem. I only have one more prob. I am unable to connect via ODBC v3.51 for MySQL to my server. I have upgraded to glibc-2.2.5-44.i386.rpm and glibc-common-2.2.5-44.i386.rpm which last time sorted my propblem but not this time round. Can anyone help please. Error I am getting is [MySQL][ODBC 3.51 Driver] Can't Connect to MySQL server on '10.10.10.2' (10061)

Offline benny

  • **
  • 22
  • +0/-0
    • http://www.andesigns.com.au
Re: Can´t run mysql on SME 6
« Reply #10 on: January 31, 2004, 03:23:10 AM »
I am having the same problem with bot 5.6 and 6.0 I tried the update of those 2 files and with no success on 5.6. I then got 6.0 thought perhaps the problem may have been cured. I am using syslog to access the mysql server from win98. I need to get at mysql so I can move databases from 5.5 server to 6.0
I am sure now that it is a config problem in mysql config somewhere