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
> -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
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
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
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
> -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
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
> > >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
> > >
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
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
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
>
>
&
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:
> ---
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
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
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
> -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
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
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
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
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
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
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
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
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
--- 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
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
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
>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
$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
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
30 matches
Mail list logo