Here is what I did to install MySQL and connector/C++.
First install MySQL Server.
Then download MySQL connector/C++ from here.
I used the binary file.
Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts
Setup MySql on Ubuntu 11.04
Posted at
6/23/2011 11:06:00 AM
Install MySQL
sudo apt-get install mysql-server-5.1 sudo mysql_install_db sudo mysql_secure_installationThen download and install JDBC (connector/J) driver.
MySQL Programming in Java
Posted at
6/23/2011 11:05:00 AM
Connecting to Database:
String url = "jdbc:mysql://hostname:portNumber/databaseName"; String username = "dbuser"; String password = "secret"; Connection conn = DriverManager.getConnection(url, username, password);
Setup MySQL on Fedora 15
Posted at
6/23/2011 11:04:00 AM
yum install mysql-serverStart MySQL server and autostart on boot:
/etc/init.d/mysqld start ## use restart after update ##OR## service mysqld start ## use restart after update chkconfig --levels 235 mysqld on
Subscribe to:
Posts (Atom)