Langsung ke konten utama

Postingan

MYSQL Regular Expressions (REGEXP) with Syntax

 https://www.guru99.com/regular-expressions.html MYSQL Regular Expressions (REGEXP) with Syntax & Examples What are regular expressions? Regular Expressions help search data matching complex criteria. We looked at wildcards in the previous tutorial. If you have worked with wildcards before, you may be asking why learn regular expressions when you can get similar results using the wildcards. Because, compared to wildcards, regular expressions allow us to search data matching even more complex criterion. Basic syntax The basic syntax for a regular expression is as follows SELECT statements... WHERE fieldname REGEXP 'pattern'; HERE – “SELECT statements…” is the standard SELECT statement “WHERE fieldname” is the name of the column on which the regular expression is to be performed on. “REGEXP ‘pattern'” REGEXP is the regular expression operator and ‘pattern’ represents the pattern to be matched by REGEXP. RLIKE is the synonym for R...

Upgrade to MariaDB Community Server 10.5 on CentOS 7

 https://mariadb.com/docs/operations/upgrades/upgrade-community-server-cs10-5-centos7/ Upgrade to MariaDB Community Server 10.5 on CentOS 7 Topics on this page: Overview Data Backup Uninstall the Old Version Stop the MariaDB Server Process Uninstall via YUM (RHEL/CentOS) Install the New Version Install via YUM (RHEL/CentOS) Configuration Starting the Server Upgrading the Data Directory Testing Overview These instructions detail the upgrade from a previous version of MariaDB Community Server to MariaDB Community Server 10.5 on CentOS Linux 7 . When MariaDB Community Server is upgraded, the old version needs to be uninstalled, and the new version needs to be installed. Data Backup Occasionally, issues can be encountered during upgrades. These issues can even potentially corrupt the database's data files, preventing you from easily reverting to the old installation. Therefore, it is generally best to perform a backup prior to upgrading. If an issue is encountered dur...

MYSQL SET PREVILEDGES

 https://dev.mysql.com/doc/refman/8.0/en/show-grants.html SHOW GRANTS Statement SHOW GRANTS [ FOR user_or_role [ USING role [ , role ] . . . ] ] user_or_role : { user ( see Section 6.2 . 4 , “Specifying Account Names ” ) | role ( see Section 6.2 . 5 , “Specifying Role Names ” . } This statement displays the privileges and roles that are assigned to a MySQL user account or role, in the form of  GRANT  statements that must be executed to duplicate the privilege and role assignments. Note To display nonprivilege information for MySQL accounts, use the  SHOW CREATE USER  statement. See  Section 13.7.7.12, “SHOW CREATE USER Statement” . SHOW GRANTS  requires the  SELECT  privilege for the  mysql  system schema, except to display privileges and roles for the current user. To name the account or role for  SHOW GRANTS , use the same format as for the  GRANT  statement (for example,...