Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





VB6 - Connecting To A MySQL Database


I know how to connect to and access MS Access databases with VB6, but I'd really rather use MySQL. Can anyone tell me where I might be able to find a VB6 code example of how to connect & access a MySQL database?




View Complete Forum Thread with Replies

Related Forum Messages:
Connecting To A MySQL Database
I'm trying to connect to a database from an ASP.NET page with VB.NET scripting on it. How can I do this? More specifically, what's the VB.NET code for connecting to a database?

View Replies !
Connecting To MySQL Database
I have a windows program that retrieves and stores information into a mysql database. I ran this program a couple of months ago without a problem but now when I try to run it I cannot connect to my database.

What all do I need to make a windows program connect to a mysql database?

So far I have downloaded the MyODBC driver. Also I am able to connect to the database via webpages.

Is there anything else that I would need besides that MyODBC driver? I do have the right port(s) open also...

View Replies !
Connecting To Mysql Database Usin Vb
I am developing a payrol system using mysql and visual basic. i have no idea as to how to connect the two. can anyoneb help please. i am working on windows

View Replies !
Difficulty Connecting To Mysql Database From Java
Unable to connect to any hosts due to exception:

java.security.AccessControlException: access denied
(java.net.SocketPermission localhost resolve)

What is causing this error? is it a MYSQL or JAVA/JSP Problem, i cant
seem to work this out ?

View Replies !
Connecting To Remote Database Via MySQL Administrator
I have used Sql Server and other databases extensively. I have the following questions.

1. I need to connect / manage a SQL database located on a remote web server runnin Linux. My workstation is running Windows XP. I understand that this is what MySQL Administrator is for. Is this correct?

2. Can I run both MySQL and SQL Server on my Windows XP machine?

3. What one book would be the most helpful to help me get a basic table setup?

View Replies !
Connecting To Remote MySQL Database With CPanel
Is it possible for a remote server or even another account on the same server to access the MySQL Database of an account?

The reason I ask this is a I have a client who wants to set-up a second website but wants to pull a lot of the data from his existing website which is in a MySQL Database.

View Replies !
Connecting To Mysql Database Using Windows Command Line
Cant execute command mysql_connect("localhost","admin","admin");

at the Windows command prompt.

I have a priviledged user called admin with a password admin.

I can connect to the database!

I further created a database and a table both called guestbook but I cannot access them using command prompt "connect"

What is missing?

View Replies !
Connecting To A Mysql Database Without The Mysql Server
Is it possible for me to copy a MySQL database to my pc (windows xp pro sp2) and use MySQL query browser to get records and create reports? If so, how do I make the connection?

View Replies !
Connecting To My Database
I have set up a Database, and i'm trying to install "Vwar" on my website, it asks for my "Database Server" and username and password, my problem is, i don't know what my Database Server would be, i have pictures of what the sites look like here

http://img.photobucket.com/albums/v457/Epicsoldier/Database.jpg
http://img.photobucket.com/albums/v457/Epicsoldier/VwarProb.jpg

View Replies !
Connecting To SQL Database Using Dev-C++
I'm trying to connect to a database using Dev-C++. If anyone could tell me what headers and code I need for this to work in windows it would be much appreciated.

View Replies !
Connecting To A Outside Database
I have an account at hostultra, but they have no MySQl for free. I got two free database from freesql.org, but they do not provide hosting. You can only connect to thier database from another host. I don't know how to do that. This is the information that I recieved for my MySQL account:

Database xtremegamer99 created
The permissions have been set on xtremegamer99
You should now be able to connect to:
www.freesql.org
port 3306
as user XtremeGamer99

I have tried this, but it didn't work:
<?php

// Connect to the database server
$connect= @mysql_connect('freesql.org:3306', 'XtremeGamer99', 'PASSWORD') or die ('Unable to connect to the MySQL database at this time.' );
// Select the database
@mysql_select_db('xtremegamer99', $connect) or die('Unable to locate the cheats database at this time.' );
?>

It gives me the die() for mysql_connect.

View Replies !
Connecting To A Database?!?!?!
Ive only ever developed locally on my machine and thats why i dont have a clue how to do this!

Im trying to connect to a database online using mysql via the command line. I have a https address, a username and a password.

How the hell do i connect? Ive searched the web but i cant find an answer!

Also once im in i really need to make a backup of the database. Any chance anyone could tell me how to do this. I can do it through phpmyadmin but i dont have that where i am right now.

View Replies !
Connecting A Database Using Godaddy
I have been tring to connect to my database using godaddy i keep getting an error#1064 you have an error in your SQL syntax check the manual that corresponds to your MYSQL server version for the right syntax to use near

// connect to database

$hostname = 'h41mysql47'.secure.net';

View Replies !
Connecting To Test Database
I just downloaded and installed MySQL database server and admin client. I believe there is a test database installed with MySQL by default.

Is this correct? And if so - how can I connect to the database so I can perform queries on it to familiarize myself with the product?

Command line is ok - or if there is a GUI way to do it with the Admin client or another tool that would be good to know.

View Replies !
Error Connecting To Database
i have installed Apache 2.0 and php 5.0.3 on to my machine which is Windows XP SP2. i can get these to work, the problem is when i install mysql it won't let me connect to my database. i keep getting this error:

Access denied for user 'ODBC'@'localhost' (using password: NO)

I have it working perfectly on Windows 2000 SP4 but cant get it to work on XP.

View Replies !
Connecting To Database Using Java
i am able to connect to mysql database located at localhost:3306 inside tomcat. But i wanna do it in stand alone command line java program.

this is what my code looks like:

com.mysql.jdbc.jdbc2.optional.MysqlDataSource d = new com.mysql.jdbc.jdbc2.optional.MysqlDataSource();

Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, provider);
ctx = new InitialContext(prop);

ctx.bind("jdbc:mysql://localhost:3306/bsidb", d);

// where provider is a string equal to "com.sun.jndi.fscontext.RefFSContextFactory"
// and bsidb is my database name

when i do the look-up it successfully returns the datasource.
and when i do getconnection
it returns a connection to the datasource.

the problem is when i do query... it returns an SQLException: No database selected

i am not using any config files because as i've said, i will do the connection using stand alone java program.
i use mysql4.1 and mysql-connector-java-3.0.16-ga-bin.jar, fscontext.jar are in my classpath.

View Replies !
Connecting To A Database Using WAMP
I'm currently using WAMP to work on existing website and database material. I downloaded the required website, but it didn't run without the database online, so I dumped a copy of the database to my hard drive and imported into phpMyAdmin, but the website still doesn't connect to the database with the address 'localhost'. What would I use? Where do I connect to the database I imported in phpMyAdmin. Here's the code for connecting as well as the error message.

// CODE
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"

$hostname_systemDB = "localhost";
$database_systemDB = "myDatabase";
$username_systemDB = "user";
$password_systemDB = "pass";

$systemDB = mysql_pconnect($hostname_systemDB, $username_systemDB, $password_systemDB) or trigger_error(mysql_error(),E_USER_ERROR);
?>

// ERROR MESSAGE
Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'eid'@'localhost' (using password: YES)

View Replies !
Connecting To Database For Newbie
Ive only started using MySQL this week and fraid im getting stuck on the basics! Im using the mysql server from a localhost and having problems connecting to the database. (im using a php programme for the mysql queries)

I can connect to mysql itself if i use the default settings: mysql_connect("localhost")

But when i try to connect to my database i keep getting the same error messages:
"Access denied for user: '@localhost' (Using password: NO)"

Ive tried creating a new user in MySQL and granting privileges such as:
GRANT ALL PRIVILEGES ON my_database.* TO user@'%' IDENTIFIED BY 'passw';

When i change the connect settings to: mysql_connect("localhost", "user", "passw")
then i dont connect to mysql, but get an error message saying:
"MySQL connection failed: Access denied for user: 'user@localhost' (Using password: YES)"

View Replies !
Connecting To Server Not Database
Is there any way to connect just to the server, not to a Database using odbc, and the create a new database?

View Replies !
Connecting To Database (osCommerce)
I'm trying to install osCommerce and going through the install process.

I'm getting the following error:

Database Import

A test connection made to the database was NOT successful.

The error message returned is:

Client does not support authentication protocol requested by server; consider upgrading MySQL client

Can anyone shed some light. Please keep in mind that I have full access to the database and can make any changes need.

View Replies !
Connecting To Database Over Network
I have a couple computers under one domain. I installed a MySQL database on my secondary computer and want to be able to access the information from that database on my primary computer.

Both computers are able to share files, no problem there, but when I try to connect to my secondary computer from my primary, it times out and says "Can't connect to mysql server on 'second computer';"

I had this working before but for some reason I can't get it to work now. Any ideas of what I'm missing here?

Also I'm using MySQLcc so it makes it a little easier for me. I've even created a second user account for the MySQL database on my secondary computer so I'm not trying to connect to through the root user.

(For example purpose, my secondary is called second and primary is call first...)

From my primary computer, I try to connect using this..

Hostname: second
User: user1
password: ****

And it times out when I try this. If I put this into my secondary computer it connects no problem.

View Replies !
Connecting To Remote Database
I'm using MAMP on a MacBook Pro. The only database connection I've been able to write that doesn't return an error message is on the database "test" that's installed by default:

$link = mysql_connect ("localhost" , "USERNAME", "") or die(mysql_error());
mysql_select_db ("test", $link) or die(mysql_error());
...where USERNAME is a username I created and accidentally applied to all my databases. Anyway, I assumed I could use the database "test," since I can at least connect to it.

But my queries all display error messages, even after I copy the tables they reference into the database test. Finally, I wrote a very simple query:

$Geog = mysql_fetch_assoc(mysql_query("SELECT * FROM gw_geog_gw"));
But I still get the following error message:

Quote:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /Users/MyName/Sites/Geobop/Files/World.php on line 7

Does that mean I'm not even connected to the database "test"?



View Replies !
Connecting To A Remote Database....please Help
I'm trying to connect to a remote database, but am not sure how to do that (ie what command I should use in the Terminal). I have a php file that gives me all of the details:
<?
Database Details ----#

$host = "**.**.**.***";
$dbname = "**************";
$dbuser = "**************";
$dbpass = "**************";


Paths Used in Codeing ---#

$root_path = "/home/software/public_html/**************/";
$http_path = "http://www.webaddress.com/**************/";

?>

View Replies !
403 Error Connecting To Database From Dreamweaver MX '04
I've been thrown somewhat unwillinging into the use of databases and MySQL, and now I'm stuck.

I'm making a blog. I have an article from Adobe.com that explains most of it. Everything with MySQL, MySQL Administrator and Apache setup went OK (as far as I can tell), but when I try to set up the database connection from within Dreamweaver (under the Applications/Databases tab) I get a 403:Forbidden error when i click "test" to connect to the server.

Can anyone tell me, as simply as possible (I'm a copywriter, not an IT specialist!!!), what went wrong adn how to fix it?

View Replies !
Connecting To Database :: Access Denied
I just downloaded mysql 4.1. When I open my sql from programs it asks for password (root pass) and then I created new database(abc) and created table(bcd). Now I am trying to connect to database and select from the table, I keep getting. "Access denied for user ''@'localhost' (using password: NO) ".After I installed mysql, I logged in using root, and password I created new user called "test" and granted permission on abc. Thats the user I am using to connect to"abc".

View Replies !
Client App Connecting To A Hosting Database
I have installed this webapp http://www.webhelpdesk.com/ on my 2 computers. I want to setup both computer to pull data from my hosting database. I'm with dreamhost.com and when I created my database with the name webhelpdesk. When I checked the database its show as webhelpdesk.domain.com. When I try to change the database on the webapp I get the following: Could not connect to MySQL database 'webhelpdesk' on host 'webhelpdesk.domain.com'.
Please confirm the connection settings.

View Replies !
Strange Problem With Connecting To Database
I've installed new server and transferred databases from my home computer to this server. I have no problems with connecting to server's database from my home computer (with MySQL Query Browser), but I can't connect to database from PHP script, placed on same server.

I get this error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'login'@'host' (using password: YES) in /home/user/script.php on line 20
Could not connect: Access denied for user 'login'@'host' (using password: YES)

PHP code is:

$conn = mysql_connect("server's ip:3306", "login", "pass") or die('Could not connect: ' . mysql_error());
mysql_select_db("database", $conn);

View Replies !
Connecting To A Database - ODBC Connectors Installed
I am trying to connect to a DB2 database using a query from MySQL GUI. What would the syntax be to do this?

Usually I just connect using the import wizard and bring tables down but I want to compare the table on the DB2 Server to ones I have locally so the only way to do that would be to write a query that connects to the Database.

I have the ODBC connectors installed and have a user and password.

View Replies !
Connecting To MYSQL From VC++ 6
I'm looking for some assistance in using Embedded SQL in C using VC++ 6.0 to
connect to MYSQL in Windows XP.

This is new to me, but it is my understanding that I need to use a
precompiler. I'm confused about where to get the precompiler. Can someone
explain in simple straight forward terms what I need in order to do this?
I've been Googling for hours with no real answers.

View Replies !
Connecting To MySql DB From A .NET App
I'm developing a Windows application in C# using Visual Studio 2005. The application should be able to read data from a MySql database. I've developed applications that read data from a Microsoft Sql Server database, using the System.Data.SqlClient namespace. My question is, does this work for MySql? And if not, what should I use? I want to keep my database connectivity simple, only executing querries and maybe stored procedures.

View Replies !
Connecting To Mysql Using Asp.net
I want to connect to mysql 4.1 db using asp.net.I havent done this before but according to book im using it says all i need is the database provider name (like the provider name for ms access is something like microsoft.jet.oledb....)-i used the myodbc before with asp(which didnt work but thats another story) but the book doesnt mention anything about odbc...yet in the mysql manual it talks about the using the myodbc to connect with asp and asp.net
So the question i have is do i just use the same obdc driver i downloaded for use wih asp....or is the book right and if so does anyone have any idea what the mysql provider name is?

View Replies !
Connecting MySql To VBA
I am asked at work to connect MySql database to excel through VBA (macros)..how do i do this, does anyone knows a tutorial or somehitng like that, I have prety much created a code, but it does not through me any data back..

View Replies !
Connecting DMW With PHP/MySQL !!!
When attempting to test the connection to a MySQL database within a PHP site in Dreamweaver, the following error occurs:

An unidentified error has occurred. I have installed Mysql 4.1 and php 5 and run dreamweaver MX with an apache web server. If i create a simple php info() page it pops up fine so the server is fine and so must php. I can log into my Mysql database and select tables etc, so that's fine. But i just can't get Dreamweaver to connect to the database. I get a 'unidentified error' message something to do with the selectDatabase.js.

View Replies !
Connecting PHP With MySQL
I wanna connect a php document with mySql. So i write the following code...:
$link = mysql_connect("127.0.0.1:3306", "HostName", "Password");
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);

I have tried this instead of 127.0.0.1:3306 with localhost but the result i get is:

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in D:ServerApache2htdocsPHPFILEsmyfirst.php on line 51

Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client

I have MySQL 4.1 and i do not know what to do!
Please help me i am in great need thank u. I would appreciate it if u mailed me also.

View Replies !
Connecting To MySQL From PHP
I'm newbie in the world PHP-MySql and I have a problem when I try to connect with my DB form a PHP script.

With the instruction
mysql_connect('localhost', user, password)

I get the error:
Fatal error: Call to undefined function mysql_connect in 'my phpscript'

View Replies !
Connecting Php And Mysql
how can i connect mysql database to php so that we can prepare it to upload online?

View Replies !
Connecting To MySql DB From Different PC
I just made a test with mySql on Windows NT. I created a table with different fields, and I made a Java program to connect with JDBC to that DB. It works if I connect from the same PC where mySql DB is. I used this Java sentence to connect:

.....DriverManager.getConnection( "jdbc:mysql://localhost/......

And it made the query I want.

But I would like that a PC in Internet could connect to that DB. I suppose I must put the IP of the mySql server instead of "localhost" on that sentence, but I got this error:

java.sql.SQLException: Invalid authorization specification: A
cess denied for user: 'a@cable87a004.usuarios.retecal.es' (Using password: YES)

I think I should change something on Winmysqladmin at bind-address (my.ini Setup) ?...I have tried to uncomment bind-address and write the IP of the mySql server, but it doesnt work...

View Replies !
Connecting To A MySQL DB With .NET
I was looking to create a VS.NET program that can connect to a MySQL database on a Linux server. I see that MySQL has some projects that integrate .NET with MySQL but my question is are those projects restricted to using MySQL on a Windows OS or can my program, on a Windows OS, connect remotely to MySQL, on a Linux OS?

View Replies !
Connecting To MySQL With PHP
Originally Posted by tluther
I am new to MySQL & PHP. I am following samples in book by Kevin Yank on how to connect to MySQL with PHP. I have installed Apache, MySQL 5.0 & PHP 5.2 and am attempting to run as local host. When following the lessions in the book everything was working ok until I tried to connect to MySQL. In the PHP script I am using localhost as the address, root as username and the same password I use when I open MySQL through the command line clinet. I have been able to create and modify a sample database but just can't get PHP to connect. Any suggestions would be appreciated. I will be glad to email you the script I am using to try to connect if you need it.

This is the code I am using:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Our List of Jokes</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php

// Connect to the database server
$dbcnx = @mysql_connect('localhost', 'root', 'mypasswd');
if (!$dbcnx) {
exit('<p>Unable to connect to the ' .
'database server at this time.</p>');
}

// Select the jokes database
if (!@mysql_select_db('ijdb')) {
exit('<p>Unable to locate the joke ' .
'database at this time.</p>');
}

?>
<p>Here are all the jokes in our database/p>
<blockquote>
<?php

// Request the text of all the jokes
$result = @mysql_query('SELECT joketext FROM joke');
if (!$result) {
exit('<p>Error performing query: ' . mysql_error() . '</p>');
}

// Display the text of each joke in a paragraph
while ($row = mysql_fetch_array($result)) {
echo '<p>' . $row['joketext'] . '</p>'
}

?>
</blockquote>
</body>
</html>

View Replies !
Connecting To MYSQL Via MS Access
I have recently decided to start using MYSQL instead of MS Access 2003.
After reading through numerous articles i have learnt that i can use
access as a GUI for making changes etc to the MYSQL databases.

My problem is that i am unable to set this up correctly.
give me a set by set guide on how to do this or give me a
link to a site or post that outlines how to do this.

i have searched google without much luck at this point.
I have attempted to use the odbc method but i do not know what to
browse for when the wizard prompts me to browse.
i have never use this method before.

View Replies !
Connecting To MYSQL From JAVA
i need to connect to a MYSQL database from a JSP... so i believe that if i learn how to connect to the MYSQL database through java... i can use the same method to connect through a JSP... anyways my question is does anyone know how to connect to mysql through java.

View Replies !
Connecting To MySQL Using Javascript
Is there and easy way to connect to a MySQL database and retrieve data using Javascript? I've searched online for a tutorial but can't find what I'm looking for.

View Replies !
Connecting To Mysql Vi ODBC
I'm trying to connect to a remote mysql database via odbc but for some reason I keep getting the following error in the odbc panel
Code:

[MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '69.65.107.209' (10060)

I added access to % in mysql access host for now to see if it might just work this way... but for some reason I can't get it working.

View Replies !
Error Connecting To MySQL
hey guys im getting this message when trying to installa classified ads script that i got?

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

View Replies !
Connecting Php To Mysql Version 5
My problem is,am trying to connect php with mysql so that i can write to the database and also read from the database in de mysql server. I tryed to use the function mysql_connect(),but i get a message like "Call to undefine function mysql_connect()" in the browser. I have mysql and php on de same computer.

I think i must make some changes in the php ini file(the configuration settings) but i have no idea how to accomplish it. And also which username must i use in the function since i don't use any username when connecting to mysql or i should leave that argument empty?

View Replies !
Connecting To MySQL In Localhost
I am totally new to php and i am using Dreamweaver 8. I am trying to create a page to initiate connection to the MySQL Server 5.0 at localhost, but the browser returns me this error message:

"Fatal error: Call to undefined function mysql_connect() in c:InetpubwwwrootMy_PHPconnect_to_mysql.php on line 11"


The testing code i was trying as below:

<?php
$connection = mysql_connect('localhost', 'root', 'password');
if (!$connection) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($connection);

View Replies !
Connecting To MySQL Through Dreamweaver 8
I'm taking an online class in php, and am trying to follow a tutorial that is supposed to teach me how to connect to MySQL through Dreamweaver. I get to the part where I'm supposed to click the + sign on the databases tab, which brings up the MySQL Connection box.

I type in my connection name, username and password (the tutorial says not to type in the server, because it should be able to find it itself, although I've tried it both ways) and when I click the "select" button to make it find my database, I get this error message: "can't connect to local mysql server through socket '/usr/local/mysql-5.0/data/mysql.sock'(2)"

I'm not running a firewall, and I'm pretty sure I have everything set up correctly, but I may be wrong.

View Replies !
Connecting To MySql On An XP Machine
I have worked with mySql on my localhost and it does fine. Now I am going to try and login to it from another XP machine. Both machiens are Windows XP Pro SP2. What do I need to type at the command prompt to login to mysql on the other XP machine?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved