🦲
mind
  • cleber's mind
  • plans
    • fact checking
    • personal assistant
  • self-management
    • agenda and tasks
    • mails and emails
  • knowledge
    • career
    • programming
      • Big O Notation
      • browsing data
      • C/C++
      • databases
      • eclipse
      • gradle
      • java
        • apache camel
      • javascript
      • naming convention
      • mysql
      • prolog
      • regex
      • REST
      • ssl/tls
      • version control
        • git commands
      • web-semantics
      • wot
    • research
      • mas
      • planning
      • math
        • probability
      • machine learning
      • nlp
      • speech recognition
      • data sources
      • data visualisation
    • it
      • asterisk
      • containers
        • installing docker
        • deploying busybox
        • deploying a sample
        • deploying node-red
        • deploying from the hub
      • clusters
        • installing kubernetes
        • deploying bootcamp
        • deploying nginx
        • deploying jacamo-rest
        • grafana
      • deploy
        • heroku
      • linux
        • tmux
        • vim
        • startup
      • networks
      • pdf
        • ssh
    • productivity
    • language
      • expressions
        • nice signposts
        • linking expressions
      • latex
      • scientific
      • writing
    • sailing
    • financial
      • assets
    • emergency
    • out of boxes
  • teaching
    • eletrĆ“nica digital
      • ConversĆ£o decimal para binĆ”rio
      • ConversĆ£o binĆ”rio para decimal
      • Sinais analógicos vs digitais
    • programação I
    • cabeamento estruturado
  • moments
    • insightful ai facts
    • ai4industry-hackathon
    • previous activities
  • brasil
  • external links
    • personal webpage
    • my github
Powered by GitBook
On this page
  • Check if the server is running
  • Connect to server using terminal client
  • List existing databases
  • Create a database
  • Creating and granting rights to an user

Was this helpful?

  1. knowledge
  2. programming

mysql

Check if the server is running

# service mysql status

Instead of status: stop, start and restart can be used according to the need)

Connect to server using terminal client

# mysql -u root -p

Digitar a senha escolhida para o usuƔrio root

List existing databases

mysql> SHOW databases;

Create a database

mysql> CREATE DATABASE database_name;

Creating and granting rights to an user

mysql> CREATE USER "user_name"@"localhost" IDENTIFIED BY "password";

mysql> GRANT ALL PRIVILEGES ON database_name.* to "user_name"@"localhost";

mysql> FLUSH PRIVILEGES;

Previousnaming conventionNextprolog

Last updated 1 year ago

Was this helpful?