About 272,000 results
Open links in new tab
  1. c# - How to connect to MySQL Database? - Stack Overflow

    Feb 7, 2014 · Browse to C:\Program Files (x86)\MySQL\MySQL Connector Net 8.0.12\Assemblies\v4.5.2; Add MySql.Data.dll; If you want to know more visit: enter link description here. To use in the code you must import the library: using MySql.Data.MySqlClient; An example with connectio to Mysql database (NO SSL MODE) by means of Click event:

  2. How do I connect to a MySQL Database in Python?

    Handling exception: To Handel exception you can do it Vai the following method: try: #Logic pass except mysql.connector.errors.Error: #Logic pass To use a database: For example you are a account creating system where you are storing the data in a database named blabla, you can just add a database parameter to the connect() method ,like

  3. How to connect mySQL database using C++ - Stack Overflow

    Getting 7.5 MySQL Connector/C++ Complete Example 1 to work. Downloads:-Get the mysql c++ connector, even though it is bigger choose the installer package, not the zip.-Get the boost libraries from boost.org, since boost is used in connection.h and mysql_connection.h from the mysql c++ connector. Now proceed:

  4. Access mysql remote database from command line

    Apr 8, 2013 · your_ssh_mashine_ipaddress - it is not local ip address, it is ip address that you ssh to, in this example 295.13.12.53. your_ssh_mashine_local_port -this is custom port not 22, in this example it is 3306. target_ipaddress - ip of the machine that you trying to dump DB. target_port - 3306 this is real port for MySQL server.

  5. Connect Java to a MySQL database - Stack Overflow

    DataSource. DriverManager is a fairly old way of doing things. The better way is to get a DataSource object. Either by using JNDI to look one up that your app server container already configured for you:

  6. python - Using MySQL in Flask - Stack Overflow

    Apr 22, 2012 · Firstly you need to install Flask-MySQL package. Using pip for example:. pip install flask-mysql. Next you need to add some configuration and initialize MySQL:

  7. database - Export MySQL dump from command line - Stack …

    Oct 26, 2023 · For example, using -A(--all-databases), you can export the schema and data of all databases including mysql system database to backup.sql as shown below. *backup.sql is created if it doesn't exist and -A(--all-databases) can also export mysql system database and generates the schema CREATE DATABASE <db>; and USE <db>; and my answer explains how ...

  8. mysql - ReactJS connection with database - Stack Overflow

    Apr 18, 2017 · I want to get the data from front end react js form and insert in to mysql database using backend express. Can you tell me the flow from front end to backend with simple one field form using react js and then insert into database.

  9. mysql - Create database on docker-compose startup - Stack …

    Apr 10, 2017 · I would like to create a MySQL database using environment variables in docker-compose.yml file, but it is not working. I have the following code: # The Database database: image: mysql:5.7 volu...

  10. Can JavaScript connect with MySQL? - Stack Overflow

    Jun 11, 2010 · Yes you can. MySQL connectors use TCP for connection, and in JS there is an little modified version of TCP client called Websocket. But you can't directly connect to MySQL server with websocket. You will need some 3rd party bridge between websocket and mysql. It receive query from websocket, send it to mysql, response result and resend to JS.