Database

How To Upgrade  POSTGRESQL 10 To 11

How To Upgrade POSTGRESQL 10 To 11

Fadıl

We will upgrade POSTGRESQL 10 To 11 on CENTOS in this article. Before I begin the redesign procedure, I need to make the accompanying basic cautioning:

You should re-arrange your postgresql.conf and pg_hba.conf records. Since the files will be reset after the redesign.

Install PostgreSQL 11

Postgresql 11 we are installing the following script.

[root@postgres eng]# yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm

[root@postgres eng]# yum install postgresql11

[root@postgres eng]# yum install postgresql11-server

initdb

We are performing the initdb task in the Postgresql 11 database.

MySQL’s Status Command

MySQL’s Status Command

Fadıl

The status allows you to see various stats on the MySQL daemon. To get to your MySQL shell, type the following command at your shell:

[icezip@saturn ~/]$ mysql -u icezip -p

(where icezip is your user name for MySQL)

A prompt will come up and ask you for your password, so go right in and enter it. This will bring up a MySQL shell.

Welcome to the MySQL monitor.  Commands end with; or g.
Your MySQL connection id is 18724 to server version: 3.22.32
Type ‘help’ for help.

Counting Number Of Entries In A Database

Counting Number Of Entries In A Database

Fadıl

Do you have your own database?  How would you like to know how many entries you have in your database from a PHP page?  Well its easy, I am going to show you a script that will allow you to create a counter that will count the number of entries you have in your database.

Now let’s say we have an email database, and we want to count the number of emails we have in the database.  All we need to do is create this simple script (assuming your database is already made).

New to Mysql? Read the Series and Become an Expert

New to Mysql? Read the Series and Become an Expert

Fadıl

This is the beginning of a series where I will work through the basic Mysql commands that you will need to manage a database. These commands are covered in this part of the series:

CREATE DATABASE,CREATE TABLE,INSERT,SELECT,FROM,WHERE,AND.

Series name: MissJackson part I, starting out
Skill level: Newbie

So you’ve got Mysql installed and if you are like me you can’t wait to enter all your old baseball cards in your new database so you can sell them on eBay, or maybe you won’t put in your
friend’s/girlfriend’s Birthday, favorite music, address, phone number, favorite music artist…( you don’t ever want to forget your girlfriend’s birthday as you may already know…). Anyway
so you got all this important crap, how do you cram it into Mysql? Ok, first you will have to get into MySQL. Once you are in Mysql you’ve got to create a database so you have something to work
with:

How to Using MysqlDump

Fadıl

MysqlDump can be used for many different reasons.  For one, you can use mysqldump to backup the data in your MySql DataBase.  Here is what mysqldumpdoes.

MYSQLDUMP – takes all the information in the selected database or table and dumps it into a  text file.  After the information is in a text file you can dump it into any database you want.
How does mysqldumpwork?
let’s take all the tables and information in the tables from the database mydb and dump it into a text file.