This is really just a PHP question, I think.
Are MySQL and Apache running on the same machine?
What version of MySQL are you running?
Typically, you need a PHP mysql_connect() call including the MySQL
host, username, and password. You only list the host above.
With a default installation of MySQ
[snip]
$dbhost = 'localhost';
[/snip]
Try changing this to 127.0.0.1
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Hola, MySQL wizards.
I'm using LAMP on Fedora Core 2.
Some kind soul produced a tutorial on the net and the first script,
, I am trying to use yields an error in
the browser of: < Couldn't connect to MySQL > Here is the script.
---
Birthdays Create Database
$dbho
Hi,
I am using the following code but not getting a
connection. :( Can someone tell me what I am doing
incorrectly?
Thanks, Scott
package database_test;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.DriverManager;
import java.sql.SQLException;
Scott D. Spiegler said:
> I am trying to programatically connect to my DB, but I
> am not sure what the connection string should be. I am
> using this statement:
>
> conn =
>
> DriverManager.getConnection("jdbc:mysql://localhost/test?user=scott&password=cuatro");
>
> I am getting this exception me
("jdbc:mysql://localhost:3306/test","root","root");
return conn;
}
...
-Original Message-
From: Scott D. Spiegler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 6:37 PM
To: [EMAIL PROTECTED]
Subject: Unable to Progra
-Original Message-
From: Scott D. Spiegler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 11:37 AM
To: [EMAIL PROTECTED]
Subject: Unable to Programatically Create DB Connection
> I am trying to programatically connect to my DB, but I am not sure
what
> the connection string
t; A: [EMAIL PROTECTED]
> Oggetto: Unable to Programatically Create DB Connection
>
>
> I am trying to programatically connect to my DB, but I
> am not sure what the connection string should be. I am
> using this statement:
>
> conn =
>
> DriverManager.getConnection
I am trying to programatically connect to my DB, but I
am not sure what the connection string should be. I am
using this statement:
conn =
DriverManager.getConnection("jdbc:mysql://localhost/test?user=scott&password=cuatro");
I am getting this exception message:
database_test.DBConnector
S
What is the connection type ? ODBC ?
> -Ursprüngliche Nachricht-
> Von: Shrikrishna Sathe [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 31. März 2004 12:53
> An: [EMAIL PROTECTED]
> Betreff: DB Connection
>
> The following .asp code sinppet gives error.
>
&
The following .asp code sinppet gives error.
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "printjob",objConn, adOpenForwardOnly, adLockOptimistic , adCmdTable
rs.AddNew
rs("jobid") = Request.Form("jobno")
rs("closesize") = Request.Form("closize"
Hi Dave,
--- "Christensen, Dave" <[EMAIL PROTECTED]>
wrote:
> Did you set up a my.ini file in your Windows
> directory? If so, what is in
> the file?
I found the problem about why I was not able to get my
WinMySQLadmin tool to start the service. My my.ini
contents are below this email the passwo
bject: RE: Unable to Create DB Connection
Oh, right- I forgot to mention that. Part of the error
message in trying to connect to the database said that
it couldn't find the mysql.err file. I installed mySQL
in C:\mysql but the error message from the DOS shell
said it couldn't find the file: D
"Scott D. Spiegler" <[EMAIL PROTECTED]> wrote:
>
> I am using the binary distribution of mySQL for
> Windows-2000 and am not able to connect to the
> DBserver. I used the Setup executable to install the
> application. I verified that the my.ini file was
> created and contained appropriate informat
directory.
> This file will contain information that should help
> you get started.
>
>
>
> -Original Message-
> From: Scott D. Spiegler
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 09, 2003 6:59 AM
> To: [EMAIL PROTECTED]
> Subject: Unable to
PROTECTED]
Subject: Unable to Create DB Connection
Hi,
I am using the binary distribution of mySQL for
Windows-2000 and am not able to connect to the
DBserver. I used the Setup executable to install the application. I verified
that the my.ini file was created and contained appropriate inform
Hi,
I am using the binary distribution of mySQL for
Windows-2000 and am not able to connect to the
DBserver. I used the Setup executable to install the
application. I verified that the my.ini file was
created and contained appropriate information. But,
when I right-click with my mouse on the stop
Well Scott, you're not done installing the Server yet.
Go to the Doc sub_dir of your MySQL root dir. and brows the
*manual_toc.html* file. You will find the info you need to get started
there.
Just a suggestion, don't use the winmysqladmin.exe GUI, or any other GUI
tool for now, get used to the com
Hi,
I am using the binary distribution of mySQL for
Windows-2000 and am not able to connect to the
DBserver. I used the Setup executable to install the
application. I verified that the my.ini file was
created and contained appropriate information. But,
when I right-click with my mouse on the stop
yes I just looked in the manual and this is really very easy almost as easy as
php.
Andrew
>-Original Message-
>From: Tan Siewling [mailto:[EMAIL PROTECTED]
>Sent: 20 March 2003 08:20
>To: [EMAIL PROTECTED]
>Subject: db connection
>
>
>
>
>Hi,
>I wo
Hi,
I would like to know if I can write a method to connect to mysql through C++
using mysql++ such that everytime i want to execute a sql statement, i just
have to call the method and input the sql statement.??
Pls help... thks
__
Hi,
What exactly are the steps to connect a machine to db in another machine(mysql
configurations,
perl-cgi as well as C APIs)? Are there any prerequisites? Is it possible to connect
from a machine
which does not have mysql installed in it?
Kindly answer. Thanks,
Rohan M
___
You've also failed to provide enough information about your problem to
allow someone to figure out what it may be.
> Alice wrote:
>
> hi .. i am a new user to mysql,
> i did install myODBC, but fail to create the db connection in the ODBC
&g
hi .. i am a new user to mysql,
i did install myODBC, but fail to create the db connection in the ODBC ...
why it fail ???
/---\
Confidential and/ or privileged information may be contained in this
e-mail and any
hi .. i am a new user to mysql,
i did install myODBC, but fail to create the db
connection in the ODBC ...
why it fail ???
/---\
Confidential and/ or privileged information may be contained in this
e-mail and any
Is it possible to procede to a DSNless connection to a mySQL DB in ASP ?
If so could anyone send me a example script ?
Thank you.
Nicolas Villatte
IT Manager
Creative Web
Rue Kessels straat, 38
1030 Brussels
Office Phone: +32 2
26 matches
Mail list logo