473,662 Members | 2,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PEAR DB not working with recently upgraded MySQL 4.1

I recently upgraded from MySQL 3.23 to 4.1. Now db is not working properly.
I'd very much like your help in solving this issue!

Here's the code I used to test it:

require_once 'DB.php';
$db =&
DB::connect('my sql://user:password@l ocalhost/dbname');
if (PEAR::isError( $db)) {
die($db->getMessage() );
}
$res =& $db->query('SELEC T * FROM table');
if (PEAR::isError( $res)) {
die($res->getMessage() );
}

The error message I get:
DB Error: insufficient permissions

I have this username in MySQL 4.1 set up in mysq.user in the old style (pre
MySQL 4.1) password. This user has no right in the user table and SELECT
rights in the db table for this dbname. This is the way it always worked in
the past.

This is different, I think, from my previous post about php not working with
MySQL 4.12 because I have that working now - php4.4.4 is workingon my
machine with MySQL 4.1 yet Pear DB is not.

I verified the password by UPDATE setting it using OLD_PASSWORD() and
flushing privileges.

Any ideas what I can do to solve this issue?

Many thanks in advance!
Nov 8 '06 #1
1 2032

"Paul" <lo*@invalid.co mwrote in message
news:oD******** **********@bign ews2.bellsouth. net...
>I recently upgraded from MySQL 3.23 to 4.1. Now db is not working
properly. I'd very much like your help in solving this issue!

Here's the code I used to test it:

require_once 'DB.php';
$db =&
DB::connect('my sql://user:password@l ocalhost/dbname');
if (PEAR::isError( $db)) {
die($db->getMessage() );
}
$res =& $db->query('SELEC T * FROM table');
if (PEAR::isError( $res)) {
die($res->getMessage() );
}

The error message I get:
DB Error: insufficient permissions

I have this username in MySQL 4.1 set up in mysq.user in the old style
(pre MySQL 4.1) password. This user has no right in the user table and
SELECT rights in the db table for this dbname. This is the way it always
worked in the past.

This is different, I think, from my previous post about php not working
with MySQL 4.12 because I have that working now - php4.4.4 is workingon my
machine with MySQL 4.1 yet Pear DB is not.

I verified the password by UPDATE setting it using OLD_PASSWORD() and
flushing privileges.

Any ideas what I can do to solve this issue?

Many thanks in advance!

Nov 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2391
by: kain | last post by:
hi there, I'm currently converting a MySQL application to PostgreSQL, and I hacked this app to support PEAR::Db . after some good coding days, I've found a problem: mysql_insert_id on pear::db . I've those two piece of code, the first is part of a class: --------- function connect($layer,$host,$db_port,$db_name,$user,$pass) { $dsn = "$layer://$user:$pass@$host:$db_port/$db_name";
4
1892
by: Chung Leong | last post by:
Do you guys use PEAR regularly? I haven't used it at all and wonder if I'm outmoded in PHP fashion.
0
1526
by: Robert | last post by:
Iam running a server and PEAR is compiled with PHP. Before some days I have upgraded PHP from 4.3.4 to 4.3.7 using Apache update from WHM (cPanel). This went well but after that one client contacted me to tell me that he have problems with showing some variables. The thing is that he told me that he is using his own PEAR installation in his web hosting account ! This is part of the code which had a problem: $ID_rubrike =$row; //THIS...
13
3021
by: Tim Tyler | last post by:
I've been using PHP for a while now - and have recently been trying to set up PHP, MySQL and Apache on Windows (for a client). It seems like all the PEAR stuff under PHP 5 doesn't work out of the box. It took me a while to track down the go-pear.bat file in the root - what with all the other garbage in there. Shouldn't this file get at least a mention in:
3
2889
by: Sven Jacobs | last post by:
Dear newsgroup, I've upgraded to PEAR::DB 1.6.5 recently. Unfortunately now the database connection doesn't work as expected anymore :( The problems seems to be the method disconnect(), which now closes the database connections of _all_ database objects. I ask myself if this is intentional or a bug. Below a code example: 01 <?php 02   error_reporting(E_ALL);
3
1926
by: Wayne Smallman | last post by:
Hi! I've had a look through various forums for some advice on getting Pear DB working with my Entropy installation of PHP Version 4.3.6 Most of the topics I found are after the fact, so that's not much use to me. I want run Pear DB under PHP Version 4.3.6 with MySQL Version 3.23.49. At the minute, I'm getting this error from the Pear.php file: Code:
5
1501
by: crescent_au | last post by:
Hi all, I've been using PHP for a while now but I haven't actually used PEAR. I have just read half a chapter in a book, it sounds alright but haven't actually used it. I was just wondering, is it really necessary to use PEAR? I usually get things done using PHP/MySQL. I don't know if I'm really missing out on something by not using PEAR. How highly is it recommended? On most job ads, i don't even see them mentioning PEAR. They mostly...
5
5212
by: john | last post by:
All: Very experienced developer, newbie to PHP. My situation: I have installed on my WIndows XP machine the following: * PHP 5.2.1 * MySQL 5.0 * Apache 2.2 All of these are installed under C:\Program Files under their own
2
2926
by: wannabe | last post by:
This is being installed on WindowsXP home edition. I am a complete novice at working with php and have just installed apache2_2, php5, mySQL5.0 and phpMyAdmin 2.10.1. After installing all 4 programs following the instructions from http://www.semtopia.com/?p=28 it tells you to create a file called testpear.php to test your pear install when working with MySQL and PHP. The file I was to create contains this information: <?php ...
0
8435
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.