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

Install Rac Oracle19c with ASM in local lab

Prerequisite Pastikan OS dapat membaca ASM disini saya menggunak oracle linux 7.8 dan saya perlu merubah kernel menjadi CHK karena disini defaultny adalah UEK grub2-set-default 1 uname -r reboot ubah selinux menjadi disabled agar tidak terlock /etc/selinux/config SELINUX=disabled ubah hostname disini saya menggunakan 2 node berikut contohnya hostnamectl set-hostname db1.db.com hostnamectl set-hostname db2.db.com tambahkan etc hosts dengan IP yang sudah di set pastikan IP Public , IP Virtual, IP Scan dalam satu segment yang sama ...

December 3, 2024 · 4 min · 848 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

Linux Doc

Artikel ini tentang linux

January 3, 2024 · 1 min · 4 words · kidtz

Python Method

Python Method String Methods str.capitalize(): #Returns a copy of the string with its first character capitalized. str.upper(): #Converts all characters in the string to uppercase. str.lower(): #Converts all characters in the string to lowercase. str.strip(): #Returns a copy of the string with leading and trailing whitespace removed. str.split(separator): #Splits the string into a list of substrings based on the specified separator. str.join(iterable): #Joins the elements of an iterable (e.g., a list) into a string using the string as a separator. List Methods list.append(element): #Adds an element to the end of the list. list.extend(iterable): #Extends the list by appending elements from the iterable. list.insert(index, element): #Inserts an element at the specified index. list.remove(element): #Removes the first occurrence of the specified element from the list. list.pop(index): #Removes and returns the element at the specified index. If no index is specified, removes and returns the last element. list.index(element): #Returns the index of the first occurrence of the specified element. list.sort(): #Sorts the elements of the list in ascending order. list.reverse(): #Reverses the order of the elements in the list. Dictionary Methods dict.keys(): #Returns a view of all keys in the dictionary. dict.values(): #Returns a view of all values in the dictionary. dict.items(): #Returns a view of all key-value pairs in the dictionary. dict.get(key, default): #Returns the value for the specified key. If the key is not found, it returns the default value. dict.pop(key): #Removes the item with the specified key and returns its value. dict.update(iterable): #Updates the dictionary with elements from another iterable or dictionary. File Methods open(filename, mode): #Opens a file and returns a file object. file.read(size): #Reads and returns the specified number of characters from the file. file.readline(): #Reads a single line from the file. file.readlines(): #Reads all lines from the file and returns them as a list. Other Common Methods len(iterable): #Returns the number of items in an iterable (e.g., a list, string, or dictionary). type(object): #Returns the type of an object. range([start], stop, [step]): #Returns a sequence of numbers from start to stop with the specified step.

November 23, 2023 · 2 min · 338 words · kidtz