Installing MySQL 9/8 Enterprise Edition in Oracle linux 7.8

Method 1 Unzip file RPM unzip mysql-commercial-server-8.0.40-1.1.el7.zip Run Installer yum install *.rpm Get password from temporary sudo grep 'temporary' /var/log/mysqld.log Secure MySQL Installation sudo mysql_secure_installation Enter current password for root (enter for none): Set root password? [Y/n] Y New password: Re-enter new password: Do you wish ...? : Y Remove anonymous users? [Y/n] Y Disallow root login remotely? [Y/n] n Remove test database and access to it? [Y/n] Y Reload privilege tables now? [Y/n] Y Try login mysql -uroot -p Method 2 After you have downloaded the MySQL Enterprise Edition software bundle from the MySQL Enterprise Edition Downloads page on OTR, follow the installation instructions below for your platform. Oracle Linux /Red Hat Enterprise Linux ...

December 12, 2024 · 2 min · 360 words · kidtz

MYSQL Shell Command

General Commands \help # Show help information \status # Display current connection and session status \quit or \exit # Exit MySQL Shell \clear # Clear the screen \history # Show command history \rehash # Update auto-completion data Session Management \connect user@host[:port] # Connect to a MySQL server \reconnect # Reconnect to the last session \disconnect # Disconnect from the current session \use database_name # Switch to a specific database Mode Switching \sql # Switch to SQL mode \js # Switch to JavaScript mode \py # Switch to Python mode Executing SQL Queries SELECT * FROM table_name; # Execute SQL queries (in SQL mode) session.runSql("SQL_QUERY"); # Execute SQL in JavaScript mode session.run_sql("SQL_QUERY") # Execute SQL in Python mode Working with Admin API dba.checkInstanceConfiguration(); # Check instance configuration dba.configureInstance(); # Configure an instance var cluster = dba.createCluster("name") # Create an InnoDB cluster cluster.addInstance("user@host"); # Add an instance to the cluster cluster.status(); # Get cluster status cluster.removeInstance("user@host"); # Remove an instance from the cluster Data Export and Import \util.dumpInstance("path", {options}); # Export instance data \util.loadDump("path", {options}); # Import data Script Execution \source /path/to/script.sql # Run a SQL script file Configuration Management \show defaultCharacterSet # Show default character set \set defaultCharacterSet=utf8mb4 # Set default character set Shell Customization \options # List shell options \set prompt "custom_prompt> " # Customize shell prompt

December 9, 2024 · 2 min · 217 words · kidtz

Install MYSQL Server Community

prereq Get repository wget https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm Get key mysql rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 rpm -qa gpg-pubkey* ls -l /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql Install Mysql Install mysql-server sudo yum install mysql-server Because MySQL is automatically installed you can use OS command for service management, for example to check if it’s already started sudo systemctl status mysqld Start MySQL if not started sudo systemctl start mysqld sudo systemctl enable mysqld sudo systemctl status mysqld Change root password Check the content of my.cnf, that is in default folder for linux OS and note the following info (lines that start with “#”are just comments) Where is the database and the error log (mysqld.log) stored? Check if there are error for the instance looking in the error log file Starting from MySQL 5.7 the default installation of MySQL Server generates a one-time password. You find it in error log notes above ...

December 9, 2024 · 2 min · 291 words · kidtz

Database level use

Level database biasanya merujuk pada level di mana database beroperasi dalam infrastruktur atau aplikasi Ranking database desember 2024 Source : Database Ranking +------------------+-----------------------------------------------+-------------------------+ | DATABASE | BEST USE CASES | LEVEL | +------------------+-----------------------------------------------+-------------------------+ | Oracle Database | Mission-critical apps, ERP, data warehousing | Enterprise (High-tier) | +------------------+-----------------------------------------------+-------------------------+ | MySQL | Web apps, CMS, e-commerce | Mid-tier to lightweight | +------------------+-----------------------------------------------+-------------------------+ | PostgreSQL | Analytics, hybrid SQL + NoSQL, data warehouse | Enterprise to mid-tier | +------------------+-----------------------------------------------+-------------------------+ | SQL Server | Microsoft ecosystem, BI, transactional apps | Enterprise (Mid to High)| +------------------+-----------------------------------------------+-------------------------+ | MongoDB | NoSQL, scalable apps, flexible schemas | Mid-tier to startup | +------------------+-----------------------------------------------+-------------------------+ | MariaDB | Web apps, SaaS, e-commerce | Mid-tier | +------------------+-----------------------------------------------+-------------------------+ | SQLite | Mobile apps, embedded systems | Lightweight | +------------------+-----------------------------------------------+-------------------------+

December 3, 2024 · 1 min · 127 words · kidtz

Mpustaka Admin Laravel

Repository -> https://github.com/kidtzz/Laravel-Mpustaka-Admin

May 18, 2023 · 1 min · 3 words · kidtz