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?

    Dec 16, 2008 · 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. 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:

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

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

  5. Where can I get a large sample database for practising MySQL …

    Jun 17, 2016 · The database should have at least 6-8 tables with lots of foreign keys in between them, i.e a complete database. The MySQL employees database looked promising, but the download page has 3 download links, clicking on any of which opens a page in a browser with a god-awful amount of binary data, dont know what to do with that.

  6. python - Using MySQL in Flask - Stack Overflow

    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. mysql - Many-to-many relationships examples - Stack Overflow

    Nov 22, 2014 · When you need to establish a many-to-many relationship in relational database between two or more tables, the simplest way is to use a Junction Table. A Junction table in a database, also referred to as a Bridge table or Associative Table, bridges the tables together by referencing the primary keys of each data table.

  8. database - How to connect to MySQL from the command line

    Jun 22, 2023 · One way to connect to MySQL directly using proper MySQL username and password is: mysql --user=root --password=mypass Here, root is the MySQL username mypass is the MySQL user password This is useful if you have a blank password. For example, if you have MySQL user called root with an empty password, just use . mysql --user=root --password=

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

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

Refresh