MYSQL

From bibbleWiki
Revision as of 20:46, 6 August 2021 by Iwiseman (talk | contribs) (Created page with "=Introduction= This page is just a reminder of the way to approach MYSQL set up. =Creating a Database= Create a local database <syntaxhighlight lang="sql"> CREATE DATABASE my...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This page is just a reminder of the way to approach MYSQL set up.

Creating a Database

Create a local database

 CREATE DATABASE mydb
 CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
 GRANT ALL PRIVILEGES ON mydb.* TO 'newuser'@'localhost';

Connect Remotely

Check Listening Port

By default you cannot connect remotely as the listening port is 127.0.0.1:33060

ss -l |grep 3306
>tcp   LISTEN 0      70                                      127.0.0.1:33060                       0.0.0.0:*