Jump to content

MariaDB:Delete Database: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
*Memperlihatkan seluruh database yang tersedia
*Memperlihatkan seluruh database yang tersedia
SHOW DATABASES;
<syntaxhighlight lang="bash">
 
sudo mysql -u root
'''Output'''
</syntaxhighlight><syntaxhighlight lang="sql">
SHOW DATABASES;
</syntaxhighlight>'''Output'''
  mysql> SHOW DATABASES;
  mysql> SHOW DATABASES;
  +--------------------+
  +--------------------+
Line 15: Line 17:


*Menghapus database
*Menghapus database
DROP DATABASE namedatabase;
<syntaxhighlight lang="sql">
DROP DATABASE namedatabase;
</syntaxhighlight>


==Source==
==Source==
*[https://bit.ly/3Fwg4Sv gridscale.io]
*[https://gridscale.io/en/community/tutorials/mysql-datenbank-erstellen-loeschen/ gridscale.io]


[[Category:Server]]
[[Category:Server]]
[[Category:Database]]

Latest revision as of 21:50, 20 November 2022

  • Memperlihatkan seluruh database yang tersedia
sudo mysql -u root
SHOW DATABASES;

Output

mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| blog |
| mysql |
| performance_schema |
+--------------------+
4 rows in set (0.00 sec)
  • Menghapus database
DROP DATABASE namedatabase;

Source