Re: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread Rick Dwyer
Hi Jim, and all the rest. Thanks for the help. What was throwing me was the EXACT same creds were being used to connect via Navicat… but not when using PHP. Could not figure it out. So I zapped gremlins in BBEdit on my test file.. which had literally no more lines than what I posted to this li

RE: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread admin
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Sunday, January 13, 2013 9:13 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Can't connect to MySQL via PHP > > Regardless of the choice of interface to mysql, rega

Re: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread Jim Giner
Regardless of the choice of interface to mysql, regardless of the completely harmless but educational tips from Ash, and very deliberately ignoring the un-helpful and extraneous comments of others, I'm wondering how the OP is doing with getting his mysql access working. Haven't heard from him l

RE: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread admin
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Sunday, January 13, 2013 8:52 AM To: admin Cc: 'tamouse mailing lists'; 'Rick Dwyer'; php-general@lists.php.net Subject: RE: [PHP] Can't connect to MySQL via PHP On Sun, 2013-01-13 at

RE: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread Ashley Sheridan
ral@lists.php.net > > Subject: Re: [PHP] Can't connect to MySQL via PHP > > > > On Sat, Jan 12, 2013 at 4:49 PM, admin > > wrote: > > > As much as the php list would like to force people from using mysql, > > I guess you should not have invented it, if you

RE: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread admin
> -Original Message- > From: tamouse mailing lists [mailto:tamouse.li...@gmail.com] > Sent: Saturday, January 12, 2013 7:55 PM > To: admin > Cc: a...@ashleysheridan.co.uk; Rick Dwyer; php-general@lists.php.net > Subject: Re: [PHP] Can't connect to MySQL via PHP &g

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread tamouse mailing lists
On Sat, Jan 12, 2013 at 4:49 PM, admin wrote: > As much as the php list would like to force people from using mysql, I guess > you should not have invented it, if you don't want people to still use it. It's not this php list. It's the php developers. mysql* functions are set to be removed in a r

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread musicdev
> > >From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > >Sent: Saturday, January 12, 2013 10:03 AM > > >To: admin > > >Cc: 'Rick Dwyer'; php-general@lists.php.net > > >Subject: RE: [PHP] Can't connect to MySQL via PHP > > >

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Jim Giner
Simple test I just did. A simple script that first connects to mysql and then tries to select a db. With a uid/pswd that I just made up for the script, I get the following: Error - Could not connect to database from sql_db_connect Access denied for user 'albany_ginerjm3'@'localhost' (using

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ashley Sheridan
Dwyer'; php-general@lists.php.net > >Subject: RE: [PHP] Can't connect to MySQL via PHP > > > > > > > >On Sat, 2013-01-12 at 12:56 -0800, admin wrote: > > > > > > > >> -Original Message- > >> From: Rick Dwyer [mailto

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ashley Sheridan
admin wrote: > > > > >From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] >Sent: Saturday, January 12, 2013 10:03 AM >To: admin >Cc: 'Rick Dwyer'; php-general@lists.php.net >Subject: RE: [PHP] Can't connect to MySQL via PHP > > &

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread admin
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Saturday, January 12, 2013 10:03 AM To: admin Cc: 'Rick Dwyer'; php-general@lists.php.net Subject: RE: [PHP] Can't connect to MySQL via PHP On Sat, 2013-01-12 at 12:56 -0800, admin wrote: > ---

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Jim Giner
On 1/12/2013 1:28 PM, Rick Dwyer wrote: On Jan 12, 2013, at 3:56 PM, "admin" wrote: -Original Message- From: Rick Dwyer [mailto:rpdw...@earthlink.net] Sent: Saturday, January 12, 2013 8:26 AM To: php-general@lists.php.net Subject: [PHP] Can't connect to MySQL via

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Rick Dwyer
On Jan 12, 2013, at 3:56 PM, "admin" wrote: > > >> -Original Message- >> From: Rick Dwyer [mailto:rpdw...@earthlink.net] >> Sent: Saturday, January 12, 2013 8:26 AM >> To: php-general@lists.php.net >> Subject: [PHP] Can't connect t

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ashley Sheridan
On Sat, 2013-01-12 at 12:56 -0800, admin wrote: > > > -Original Message- > > From: Rick Dwyer [mailto:rpdw...@earthlink.net] > > Sent: Saturday, January 12, 2013 8:26 AM > > To: php-general@lists.php.net > > Subject: [PHP] Can't connect to MySQL

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread admin
> -Original Message- > From: Rick Dwyer [mailto:rpdw...@earthlink.net] > Sent: Saturday, January 12, 2013 8:26 AM > To: php-general@lists.php.net > Subject: [PHP] Can't connect to MySQL via PHP > > Hello all. > > I used the code below successfully

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ray
On January 12, 2013 11:25:58 AM Rick Dwyer wrote: > Hello all. > > I used the code below successfully to connect to a MySQL db on one hosting > provider. I've moved the code to a new hosting provider with new values > and it returns: > > Access denied for user 'user'@'db.hostprovider.net' (using

[PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Rick Dwyer
Hello all. I used the code below successfully to connect to a MySQL db on one hosting provider. I've moved the code to a new hosting provider with new values and it returns: Access denied for user 'user'@'db.hostprovider.net' (using password: YES) Even though I can copy and paste these three

Re: [PHP] can't connect to mysql

2005-09-13 Thread viraj
IL PROTECTED]> > To: > Sent: Tuesday, September 13, 2005 3:09 AM > Subject: [PHP] can't connect to mysql > > > I finally got php5 compiled with mysql but now I can't connect using > mysql_connect without getting the error of: > > Warning: mysql_connect() [fun

Re: [PHP] can't connect to mysql

2005-09-12 Thread Gustav Wiberg
Hi there! What code are you using? Try with the mysqli... http://se2.php.net/manual/en/ref.mysqli.php /G - Original Message - From: "blackwater dev" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 13, 2005 3:09 AM Subject: [PHP] can't connect to mysql I fina

[PHP] can't connect to mysql

2005-09-12 Thread blackwater dev
I finally got php5 compiled with mysql but now I can't connect using mysql_connect without getting the error of: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in... I can ssh into the box and log in to mysql so I think

Re: [PHP] can't connect to mysql

2003-06-02 Thread Jason Wong
On Monday 02 June 2003 09:15, Chin Hui wrote: > i'm a newbie in php and mysql. i've just installed mysql 4.0.13 with a > .tar.gz file. PHP 4.2.2 comes along with my redhat 9 installation. > I can't seem to connect to mysql with any php scripts. I've noticed a > package named php-mysql. I've tr

[PHP] can't connect to mysql

2003-06-02 Thread Chin Hui
hi, i'm a newbie in php and mysql. i've just installed mysql 4.0.13 with a .tar.gz file. PHP 4.2.2 comes along with my redhat 9 installation. I can't seem to connect to mysql with any php scripts. I've noticed a package named php-mysql. I've tried to install, but it has a dependency on mysq

Re: [PHP] Can't connect to mysql

2003-03-29 Thread Jim Lucas
if you are on redhat check and make sure you have the php_mysql... rpm installed. Jim - Original Message - From: "CDitty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 9:07 PM Subject: [PHP] Can't connect to mysql > I just setup

Re: [PHP] Can't connect to mysql

2003-03-28 Thread Chris Shiflett
--- CDitty <[EMAIL PROTECTED]> wrote: > Fatal error: Call to undefined function: mysql_connect() What version of PHP? This almost always means PHP was built without MySQL support (the --with-mysql was missing from the configure line, though this isn't necessary in newer versions). Does phpinfo() s

[PHP] Can't connect to mysql

2003-03-28 Thread CDitty
I just setup my home development server and I am having problems connecting to the mysql server. Mysql is isntalled and is configured correctly. It is running. Mysql is compiled into php, When I try to connect using existing code, I get the following error. Fatal error: Call to undefined f

[PHP] Can't connect to mysql after applying MS Hotfix

2001-05-15 Thread Tyler Longren
Hello everybody, Lastnight, I was building a site. Multiple SQL queries were being made on every page. Everything worked nice and smooth. I downloaded and applied the patch for MS01-026 which effects IIS 4.0 and 5.0. I rebooted after applying the hotfix, and after that, NONE of my php scripts

Re: [PHP] can't connect to mysql

2001-04-04 Thread B. van Ouwerkerk
>Warning: MySQL Connection Failed: Can't connect to local MySQL server >through >socket '/tmp/mysql.sock' (111) Did you read the FAQ Did you check the archive?? Edit your php.ini to match the location of the mysql.sock Bye, B. -- PHP General Mailing List (http://www.php.net/) To uns

Re: Re: [PHP] can't connect to mysql

2001-04-04 Thread Paul Juliano
$link = mysql_connect ("localhost","root","mypassword") or die ("Could not connect"); I'm pretty sure that the username/password is correct. I can connect from the linux shell using mysql -u root -p Dan Cleveland wrote: >What does your mysql_connect statement look like? > >Da

[PHP] can't connect to mysql

2001-04-03 Thread Paul Juliano
Hello, I have a simple question when connecting through mysql. It seems that php is trying to connect to /tmp/mysql.sock, but it's not in the /tmp directory. It's in /var/lib/mysql/mysql.sock. I can connect throught mysql through the command line just fine, but php functions cannot. It gives t