Found 4401 Articles for MySQL

Setting Up LAMP (Linux, Apache, MySQL/MariaDB, PHP) and PhpMyAdmin on Ubuntu 15.04 Server

Ayush Singh
Updated on 03-Aug-2023 15:39:42

144 Views

LAMP is one of the most widely used Open source technology stacks which is used in the development of web applications. In this combination, Linux acts as the operating system, while PHP is the server side programming language. MySQL or MariaDB acts as the database management system along with apache as web server. In this article, we’ll cover how to set up the LAMP stack with PhpMyAdmin on an Ubuntu 15.04 server. With the use of LAMP (Linux, Apache, MySQL/MariaDB, PHP) components, we can build interactive and engaging Web applications. Let's understand each component of the LAMP stack: Linux ... Read More

Setting Up LAMP (Linux, Apache, MySQL/MariaDB, PHP and PhpMyAdmin) in Ubuntu Server 14.10

Ayush Singh
Updated on 03-Aug-2023 14:34:59

228 Views

Setting up LAMP (Linux, Apache, MySQL/MariaDB, PHP, and PhpMyAdmin) in Ubuntu Server 14.10 includes putting in and configuring an effective net improvement stack. LAMP affords an entire environment for growing and deploying dynamic web sites and net programmes. Linux serves as the running system, offering a strong and steady basis for the stack. Apache acts as the net server, managing incoming requests and serving net pages. MySQL/MariaDB serves as the relational database control system for storing and dealing with data. PHP is the scripting language used for dynamic content generation. Additionally, PhpMyAdmin is established as a net-primarily based total management ... Read More

How to Concatenate Column Values of a MySQL Table Using Python?

Prince Yadav
Updated on 21-Jul-2023 13:09:27

203 Views

MySQL is an open−source relational database management system that is widely used to store, manage, and organize data. When working with MySQL tables, it is common to require the combination of multiple column values into a single string for reporting and analysis purposes. Python, a high−level programming language, offers several libraries that enable connection to MySQL databases and execution of SQL queries. In this article, we'll dive into the process of concatenating column values of a MySQL table using Python and the PyMySQL library. A step−by−step guide is provided on how to connect to a MySQL database, execute a SQL ... Read More

How to Compute the Average of a Column of a MySQL Table Using Python?

Prince Yadav
Updated on 20-Jul-2023 20:31:42

142 Views

In today's data−driven world, for businesses and organizations efficiently analyzing and manipulating large data sets is difficult. MySQL, as a popular open−source relational database management system, and Python, as a versatile programming language, are two latest and trending technologies that when combined, can help achieve this goal. In this article, we will guide you through the process of computing the average of a column of a MySQL table using Python. From establishing a connection to your MySQL database, executing an SQL query to compute the average of a column, and fetching the result, we will provide a step−by−step guide ... Read More

Install Apache, MySQL 8 or MariaDB 10 and PHP 7 on CentOS 7

Satish Kumar
Updated on 17-Jul-2023 16:39:54

601 Views

Introduction CentOS 7 is a popular Linux distribution known for its stability and security. If you're looking to set up a web server on CentOS 7, you'll likely need to install Apache, MySQL or MariaDB, and PHP. In this comprehensive guide, we will walk you through the installation process of these components, along with examples and their outputs, to ensure a successful setup. Prerequisites Before we begin, make sure you have the following prerequisites in place − CentOS 7 installed on your server or virtual machine. Root access or sudo privileges to execute commands with administrative rights. Update the System ... Read More

How to take backups of MySQL databases using Python?

Tushar Sharma
Updated on 10-Jul-2023 18:31:34

2K+ Views

Safeguarding the integrity and recoverability of your MySQL database is of paramount importance to mitigate the risks associated with data loss and corruption. Python, a versatile programming language, offers a myriad of libraries and techniques for seamless interaction with MySQL databases and accomplishing efficient backup procedures. This article delves into three distinct methodologies for creating MySQL database backups using Python, encompassing the utilization of the subprocess module, integration of the mysqldump command with the pymysql library, and leveraging the robust capabilities of the MySQL Connector/Python library. Through practical examples, we will delve into the intricacies of these techniques. Method 1: ... Read More

Order by in MS SQL Server

Mithlesh Upadhyay
Updated on 18-May-2023 17:28:12

523 Views

Order by is a clause in SQL. It is used to sort the result set of a query in either ascending or descending order. It can sort using one or more columns. In this article, we will discuss the Order by clause in MS SQL Server. Syntax The syntax for using the Order by clause in MS SQL Server is as follows − SELECT column1, column2, ... FROM table_name ORDER BY column1 [ASC|DESC], column2 [ASC|DESC], ...; Explanation of Syntax SELECT column1, column2, ... : Specifies the columns that we want to retrieve from the table. FROM table_name: Specifies ... Read More

Object Identity, and Objects versus Literals

Mithlesh Upadhyay
Updated on 18-May-2023 18:14:46

1K+ Views

DBMS supports object-oriented data. It ensures direct correspondence between real-world objects and their representations in the database. This correspondence ensures that objects retain their integrity and identity. It enables easy identification and manipulation. Object Data Management System (ODMS) assigns unique identity to each independent object stored in the database. This unique identity is implemented through a system-generated object identifier (OID). This OID serves as distinct value assigned to each object by the system. It is not visible to external users. However it is internally utilized by the system to ensure the unique identification of each object and to establish and ... Read More

MySQL Recursive CTE (Common Table Expressions)

Mithlesh Upadhyay
Updated on 18-May-2023 18:33:23

2K+ Views

MySQL Recursive CTE allows users to write queries that involve recursive operations. Recursive CTE is an expression that is defined recursively. It is useful in hierarchical data, graph traversals, data aggregation, and data reporting. In this article, we will discuss Recursive CTE with its syntax and examples. Introduction Common Table Expression (CTE) is a way to give a name to the temporary result sets generated by each query in MySQL. The WITH clause is used to define a CTE, and multiple CTEs can be defined in a single statement using this clause. However, a CTE can only reference other CTEs ... Read More

MS SQL Server - Type Conversion

Mithlesh Upadhyay
Updated on 18-May-2023 17:45:32

219 Views

When we work with data in MS SQL Server, we often need to perform calculations or filter results based on data type. Properly converting data types ensures that our calculations are accurate and our queries return the desired results. In this article, we will discuss various type conversions in MS SQL Server. Built-in Data Types in MS SQL Server MS SQL Server has various built-in data types to store different types of data. These are the common built-in data types in MS SQL Server − int: Used to store integers. decimal: Used to store decimal numbers. varchar: Used to ... Read More

Advertisements