About 289,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. 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:

  5. 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.

  6. 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 ...

  7. 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...

  8. database - How to import an SQL file using the command line in …

    Jul 16, 2013 · Next, create a database and use it: mysql>create database yourDatabaseName; mysql>use yourDatabaseName; Then import the sql or the dump file to the database from. mysql> source pathToYourSQLFile; Note: if your terminal is not in the location where the dump or sql file exists, use the relative path in above.

  9. 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:

  10. How to import an excel file in to a MySQL database

    Mar 21, 2019 · Below is another method to import spreadsheet data into a MySQL database that doesn't rely on any extra software. Let's assume you want to import your Excel table into the sales table of a MySQL database named mydatabase. Select the relevant cells: Paste into Mr. Data Converter and select the output as MySQL:

Refresh