nitin
nitin

Reputation: 7

is it necessary to use php to connect to the MySQL

is it necessary to use php to connect to the MySQL

i am working the desktop application and do not have a knowledge of php either is there any in build class or functionality that can be use to connect to the MySQL

although there are many programme present over the internet to do so but unablefind one without the use of php. is there any reference or can i have the step by step example regarding the work.

MySQL config has the default settings. like username is root and password is blank my server name is local host.

Upvotes: 0

Views: 814

Answers (3)

Len
Len

Reputation: 542

MySQL has nothing to do with PHP, except that they are often bundled together. If you need to access MySQL by itself you can download MySql workbench.

http://www.mysql.com/products/workbench/

If you need a driver for your language google 'language + MySql Driver'

Upvotes: 0

elmysterio
elmysterio

Reputation: 202

If you're writing a desktop application, mysql probably isn't the database you want to use. If you want to store data locally, try something like an embedded sqllite database. If you want to store the data remotely, I STRONGLY recommend to put the database behind an API. That is where something like PHP would come into play. It doesn't have to be PHP though. It can be python, java, ruby, etc.

Whatever you do though, DO NOT talk directly to a remote mysql database from your desktop app. That's just asking to have your db hacked.

Upvotes: 1

Bob Kuhar
Bob Kuhar

Reputation: 11130

No. PHP is a programming language. MySQL is a database. Install MySQL and type mysql from the command line and you will be connecting to MySQL using mysql.

MySQL docs

Upvotes: 2

Related Questions