T
T
Timur Salavdiev2021-03-23 19:11:46
linux
Timur Salavdiev, 2021-03-23 19:11:46

How it is better to organize DB?

In general, the question is that I switched to Linux (Ubuntu)
On Windows, when working with the database, I used openserverom, I would like specific advice on how to organize on linux (preferably mysql)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Yuriev, 2021-03-23
@stav26

sudo apt install mysql-server
or
sudo apt install mariadb-server
choose
after installing one thing
sudo mysql_secure_installation
there will be a dialog, a la setting a password for the root user of the database, deleting a test user, etc.

O
Oleg Andreev, 2021-03-23
@RolingHome

Better put Maria. On Linux it is very convenient to work in phpmyadmin. But you have to set it up manually.

V
Valdemar Smorman, 2021-03-24
@smorman

Installing LAMP with Maria, with basic, basic settings, with one command in the Terminal in Ubuntu 20.04 from of rep:

LAMP
cd /etc/apt/sources.list.d; echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu $(lsb_release -cs) main" | sudo tee php.list > /dev/null; sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com:443 4F4EA0AAE5267A6C; cd; sleep 10; sudo apt update; sudo apt full-upgrade; sudo apt install apache2 mariadb-server-10.3 php libapache2-mod-php php-mysql php-cgi php-gd php-zip php-xml php-xmlrpc php php-curl php-json php-mbstring php-cli; sudo ufw allow in 80/tcp; sudo a2enmod rewrite; sudo sed -i "s/AllowOverride None/AllowOverride All/" /etc/apache2/apache2.conf; sudo systemctl restart apache2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question