Sugeng rawuh

Mysql in Ubuntu 20 error Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

 Message Error : Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

Fix my Problem :

1. open terminal

2. write coment : sudo /opt/lampp/bin/mysql_upgrade

3. restart apache

4. finish. 


i had the error when created a stored procedure mysql

Share:

Cannot send email from VPS with CodeIgniter

Gagal mengirim Email Gmail dari VPS

Ternyata tidak hanya saya saja yang mengalamai kendala saat mengirim Email khususny Gmail dari website dengan menggunakan VPS. masalah ini sudah saya alami sejak 2013, dan hari ini saya mencoba kembali apakah masih sama dengan source code yang tentunya berbeda. Saya menggunakan CI 3 untuk saat ini, source code sesuai dengan library CI yang ada di documentasi ternyata tetap tidak bisa. 

Gmail, yahoo mungkin sangat ketat jadi kalau ada proses send email melalui port atau ip VPS dianggapnya kurang aman. 

Saya juga menggunakan Cloud Hosting, untuk masalah kirim email di hosting tidak ada masalah sama sekali. 

Fix problem untuk masalah saya sendiri

Dengan memanfaatkan Hosting yang ada, ahirnya saya membuat semacam API sendiri di Hosting untuk mengirim email dari VPS manapun, dengan memberikan hak akses kunci agar lebih aman lagi. 

Share:

Auto run node js if reboot system


Image : list pm2 , check after reboot system 

Auto run node js if reboot system

1. Install PM2 globally using NPM

npm install pm2 -g


2.Start your script with pm2

pm2 start app.js


3. generate an active startup script

pm2 startup


NOTE: pm2 startup is for startting the PM2 when the system reboots. PM2 once started, restarts all the processes it had been managing before the system went down. In case you want to disable the automatic startup, simply use pm2 unstartup If you want the startup script to be executed under another user, just use the -u <username> option and the --hp <user_home>:




Share:

Puppeteer can't launch chromium, missing shared library libgbm.so - ubuntu

sudo apt-get update

sudo apt-get install -y libgbm-dev

Share:

Update password root phpmyadmin ubuntu 20

 Try restart mysql-server before execution the comands

sudo service mysql restart

MYSQL-SERVER >= 5.7

sudo mysql -uroot -p
USE mysql;
UPDATE user SET authentication_string=PASSWORD('YOUR_PASSWORD') WHERE User='root';
UPDATE user SET plugin="mysql_native_password";
FLUSH PRIVILEGES;
quit;

MYSQL-SERVER < 5.7

sudo mysql -uroot -p
USE mysql;
UPDATE user SET password=PASSWORD('YOUR_PASSWORD') WHERE User='root';
UPDATE user SET plugin="mysql_native_password";
FLUSH PRIVILEGES;
quit;

Share:

Codeigniter CSRF valid for only one time ajax request

 You can set this in config.php

$config['csrf_regenerate'] = FALSE;

so the csrf protection is valid during all the session time it will solve your problem. If you set $config['csrf_regenerate'] = true; then CI generate new csrf token every request so your old csrf token not match with new generated csrf token

Share:

Install Ubuntu 20 - setting alokasi tiap partisi

 

Alokasi memori adalah 100GB atau 100.000 MB

akan dibagi menjadi 4 partisi lagi yaitu :

1. Swap 

- di sesuaikan RAM saat ini saya pakai 16GB jadi swap saya juga 16 GB

- logical

2. Root

- Root ini untuk file system seperti disk C kalau di windows

- saya lokasikan 40 - 50 GB

- primary

- /

3. Home

- Sisa dari size saya alokasikan ke home kurang lebih 24 GB

- logical

- /home

4. Boot

- untuk menyimpan boot loader atau group ubuntu nantinya

- /boot

- logical

- alokasi size sisa dari proses diatas saya alokasikan semuanya


Share:

Tonton video



Yuk, SUBSCRIBE

omfiki.blogspot.com