Python -Run a transactional query in MySQL on Ubuntu No.103

How run a transactional query in MySQL on Ubuntu using Python is shown here. Contents ▼1. Run a transactional query in MySQL on Ubuntu▼2. Prerequisites▼3. Creating Python code to insert data with False of “autocommit” in MySQL on Ubuntu3-1. Creating Python code3-2. Results3-3. Confirming results of select query by connecting to MySQL from a terminal3-4. Results when commit is executed3-5. Confirming results after connecting to MySQL from a terminal.▼4. Reference▼1. Run a transactional query in MySQL on Ubuntu Regarding SQL Server on Ubuntu, how to execute a transactional query using Java and Python were shown in the past. regarding MySQL on Ubuntu, pyodbc is used for the connection to MySQL. … Continue reading “Python -Run a transactional query in MySQL on Ubuntu No.103”

Python – Put data in MySQL into Azure Blob Storage No.102

How to put the results of select query for MySQL into Azure Blob Storage using Python is shown in this blog. Contents ▼1. Saving data in MySQL into Azure Blob Storage▼2. Prerequisites▼3. Python code to save data in MySQL into Azure Blob Storage3-1. Creating python code3-2. Results of this code▼4. Reference▼1. Saving data in MySQL into Azure Blob Storage In the past, how to save data in MySQL into a local file using Python was shown in the following blog. in this case, the target of saving data is Azure Blob Storage. Python – Save data of MySQL into a local file  No.99 ▼2. Prerequisites How to create an environment … Continue reading “Python – Put data in MySQL into Azure Blob Storage No.102”

Python – Error handling & Retry in MySQL on Ubuntu  No.101

How to implement the error handling and retry with some interval in MySQL on Ubuntu by Python is shown in this blog. Contents ▼1. Why do we need an error handling and an retry logic?▼2. Prerequisites▼3. Creating the Python code to implement the error handling & retry logic3-1. Developing a python code for an error handling and a retry logic3-2. Results for this code▼4.  Others: Confirming the listening port of MySQL▼5. Reference▼1. Why do we need an error handling and an retry logic? We often use a cloud service and a remote service through the network. if the network intermittently cause something problems, the client application cannot access these services and … Continue reading “Python – Error handling & Retry in MySQL on Ubuntu  No.101”

Python – Save data of MySQL into a local file  No.99

How to save the results of select query in MySQL on Ubuntu through pyodbc into a local file using python is shown in this blog. Contents ▼1. Save data of MySQL on Ubuntu into a file▼2. Prerequisites▼3. Python code to save results of select query for MySQL into a file3-1. Creating python code3-2. Results of this code▼4. Reference▼1. Save data of MySQL on Ubuntu into a file In the past, how to save data My MySQL into a file using Java was provided in this blog as below. in this case, it will be implemented by Python. Java -Save the results of select for MySQL into a file No.85 ▼2. Prerequisites How … Continue reading “Python – Save data of MySQL into a local file  No.99”

Python – Connect to MySQL on Ubuntu 20.04 by pyodbc No.98

How to connect to MySQL by pyodbc and run select statement using Python is shown in this blog. Contents ▼1. Connecting to MySQL by pyodbc Python▼2. Prerequires2-1. Installing MySQL on Linux2-2. Installing MySQL の Connector/ODBC 8.0.312-2-1.  Downloading 2 types of files from MySQL site2-2-2.  Extracting the tar.gz files that were downloaded2-2-3.  Registering ODBC Driver using myodbc-installer2-2-4.  Confirming the registered ODBC Driver2-2-5.  Setting up myodbc-connector-odbc2-2-6.  Adding below in /etc/odbc.init2-2-7.  Updating config file▼3. Python code to connect to MySQL and execute select query3-1. Create Python code3-2.  Results of this code▼4. Reference▼1. Connecting to MySQL by pyodbc Python In the past blogs, how to connect to MySQL using Java is provided as below. in this … Continue reading “Python – Connect to MySQL on Ubuntu 20.04 by pyodbc No.98”

Java –Save records for MySQL into Azure Blob Storage No.86 

In this blog, how to save the results of select query for MySQL into Azure Blob Storage by Java. Contents ▼1. Prerequisites1-1. Install MySQL and create a table with some records▼2. Save the results of select for MySQL on Ubuntu into Azure Blob Storage by Java2-1. Create an Apache Maven project2-2. Remove the existed both App.java and AppTest.java2-3. Start Visual Studio Code2-4. Update pom.xml as below and save it (Ctrl+S)2-5. Save the results of select for MySQL into Azure Blob Storage2-6. Run the code▼3. Reference▼1. Prerequisites 1-1. Install MySQL and create a table with some records Java – Connect to MySQL on Ubuntu and run select query No.80 # Create a table … Continue reading “Java –Save records for MySQL into Azure Blob Storage No.86 “

Java -Save the results of select for MySQL into a file No.85

In this blog, how to save the results of select for MySQL on Ubuntu into a file is shown. Contents ▼1. Prerequisites1-1. Install MySQL and create a table with some records▼2. Save the results of select for MySQL on Ubuntu into a file by Java2-1. Create an Apache Maven project2-2. Remove the existed both App.java and AppTest.java2-3. Start Visual Studio Code2-4. Update pom.xml as below and save it (Ctrl+S)2-5. Save the results of select for MySQL on Ubuntu into a file2-6. Run the code▼3. Reference▼1. Prerequisites 1-1. Install MySQL and create a table with some records Java – Connect to MySQL on Ubuntu and run select query No.80 # Create … Continue reading “Java -Save the results of select for MySQL into a file No.85”

Java – Connect to MySQL on Ubuntu and run select query No.80

How to connect to MySQL and run select query is shown in this blog. Contents ▼1. What is MySQL?▼2. Prerequisites2-1. Install JDK2-2. Install Visual Studio Code2-3. Install Maven2-4. Install the latest version of MySQL2-5. Download mysql java connector2-6. Install mysql java connector2-7. Create Database “testdb” and user “hiveuser”▼3. Connect to MySQL on Ubuntu and execute select query in Java3-1. Create an Apache Maven project3-2. Remove the existed both App.java and AppTest.java3-3. Start Visual Studio Code3-4. Update pom.xml as below and save it (Ctrl+S) 3-5. Connect to MySQL and execute select query3-6. Results of this code▼4. Reference▼1. What is MySQL? MySQL, the most popular Open Source SQL database management system, is … Continue reading “Java – Connect to MySQL on Ubuntu and run select query No.80”