1 of 2
1
MySQL error
Posted: 26 July 2004 04:51 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  34
Joined  01-29-2003

Hi,

I just recently bought and installed EE 1.0. I’ve been a pMachine user since Feb. 2003.

In my installation of EE, I’m encountering this error message:

MySQL ERROR:

Query: SELECT * FROM exp_member_groups WHERE group_id = '3'

Both pMachine and EE is residing on the same database and accessing it using the same database user.

To make sure things are working fine, I checked the database using phpMyAdmin. All of the exp_ tables were created including exp_member_groups. I even ran an SQL statement on such table, and it does contain a record of group_id=3.

Both my index.php and control panel shows the same error message. Btw, this is a fresh install.

Can anyone kindly assist me in resolving this matter? Moreover, if you need more detailed information (server runtime environment, etc); let me know and I’ll provide such details.

Looking forward to some enlightenment. grin

Profile
 
 
Posted: 27 July 2004 09:22 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

You might try opening your config.php and set it to use non-persistent connections:

$conf['db_conntype'] = "0";


Someone also reported the same error/behavior and getting it fixed by changing the hostname from the IP address to “localhost”.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 27 July 2004 02:55 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  34
Joined  01-29-2003

The config.php I’ve been using has:

$conf['db_conntype'] = "0";

I’ve tried both persistent (1) and non-persistent (0), and still shows the same error.

For the IP address, I also tried both the “localhost” and “127.0.0.1” IP address, but to no avail.

The server environment is:
PHP: 4.3.8
MySQL: 4.0.18-standard

Using phpMyAdmin, the “exp_” tables were created by EE. Such tables doesn’t have any problem when you issue an SQL statement.

Any leads on how to fix this?

Profile
 
 
Posted: 28 July 2004 07:45 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  34
Joined  01-29-2003

I found a solution to this problem.

Apparently, it’s not the persistent or non-persistent, which causes the problem.

I changed the password of the MySQL user. Previously, I had a password using the characters (not in any order): “@#$%!)#”.

Now, I’m using an alpha-numeric password, and it works.

Profile
 
 
Posted: 28 July 2004 01:51 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Very strange.  I would have expected some other MySQL error to appear if there was a problem with the password. [shrug]  Well, at least you got it working!

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 29 July 2004 05:08 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  8
Joined  06-14-2004

Hi.
I Experience the same problem as you guys. When trying to login i get:

MySQL ERROR:
Query: SELECT * FROM exp_member_groups WHERE group_id = ‘3’

Have changed:
1. In The config.php :
$conf[‘db_conntype’] = “1”; $conf[‘db_conntype’] = “0”;

2. localhost” to “IP address”

The symptoms still the same.
Can you please tell me how to proceed.
Thanks,

Profile
 
 
Posted: 29 July 2004 03:13 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Is that the full error?  Is there any other details provided?

 Signature 
Profile
 
 
Posted: 29 July 2004 11:44 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  8
Joined  06-14-2004

no that is the only error message.
thanks.

Profile
 
 
Posted: 29 July 2004 11:49 PM   [ Ignore ]   [ # 8 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Ah, how unhelpful.  Since that is a perfectly valid query, it is a problem with MySQL itself.  You might try to change your password, if possible, just like above.  It might just work, although I cannot fathom why.

You might also try going into the Admin section of the Control Panel.  Choose SQL Manager->Manage Database Tables.  Select the exp_member_groups checkbox, and then scroll to the bottom of the page and choose “repair selected tables” from the pulldown menu.

 Signature 
Profile
 
 
Posted: 30 July 2004 12:30 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  8
Joined  06-14-2004

done all the suggested.
1. repairing the exp_member_groups table in SQL Manager
2. changing the password (although alphanumeric already).
Error message still the same, however it takes ages for the result to parse…
???

Profile
 
 
Posted: 30 July 2004 12:53 AM   [ Ignore ]   [ # 10 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Try going into the SQL Manager and using the Database Query Form try submitting that query.  If that works, then I suggest you contact your host and see if they have any idea why MySQL might be spitting out an invalid error message.

 Signature 
Profile
 
 
Posted: 30 July 2004 03:52 AM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  8
Joined  06-14-2004

I have received the same reply from my host to your last one.
Can you please advise me how to reinstall EE.
thanks,
m

Profile
 
 
Posted: 30 July 2004 09:08 AM   [ Ignore ]   [ # 12 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

I believe you could also get an error like that if MySQL is out of available connections.  You might want to ask your Host about that.  Find out whether they prefer persistent or non-persistent connections.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 30 July 2004 10:23 AM   [ Ignore ]   [ # 13 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Did you try the query in phpMyAdmin or the Database Query Form with this query?

 Signature 
Profile
 
 
Posted: 31 July 2004 06:26 AM   [ Ignore ]   [ # 14 ]  
Summer Student
Total Posts:  8
Joined  06-14-2004

Hi Paul.*
yes i have succesfuly ran query in phpMyAdmin.
I have just received a note from my host that they prefer non-persistent connections: “We prefer that you end your mysql session at the end of each page.”
Now what, mate?

Profile
 
 
Posted: 31 July 2004 04:04 PM   [ Ignore ]   [ # 15 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

That is the first query preformed by the Session class, and so we believe that is the first query for the entire system.  The fact that there is not a database connection error seems to indicate that you can connect.  However, it is darn odd that MySQL is not giving us any more information too.

Really we’re at a loss.  If you have switched to non-persistent connections and repaired tables, then there might be a PHP to MySQL problem.

 Signature 
Profile
 
 
Posted: 02 August 2004 04:30 AM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  8
Joined  06-14-2004

Hi Paul.*
what should i do know? wait for the miracle?
Please advise. thanks.
Regards

Profile
 
 
Posted: 02 August 2004 04:54 AM   [ Ignore ]   [ # 17 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

If you send me an email with FTP and Control Panel access I can look at it in more depth and see if I can see where the problem is happening.

 Signature 
Profile
 
 
Posted: 10 August 2004 02:35 AM   [ Ignore ]   [ # 18 ]  
Grad Student
Rank
Total Posts:  62
Joined  08-30-2003

This error message happens when MySQL is not running!
I guess the error message comes from PHP

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 32
Total Topics: 82017 Total Anonymous Users: 18
Total Replies: 440818 Total Guests: 167
Total Posts: 522835    
Members ( View Memberlist )