Latest Laravel php artisan migrate command error : Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] Connection refused

When I run php artisan migrate –seed command , I am encountering the following error : Illuminate\Database\QueryException SQLSTATE[HY000] [2002] Connection timed out (SQL: select * from information_schema.tables where table_schema = myDB and table_name = migrations and table_type = ‘BASE TABLE’) at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671667| // If an exception occurs when attempting to run a query, we’ll format… Read More »

Here’s your DigitalOcean credit!

Deploy your next app in seconds. Get $100 in cloud credits from @DigitalOcean using my link: https://m.do.co/t/2d36b262058d Need help getting started on DO? Feel free to contact me for your Virtual Server Setup: Happy Coding, Team Mwired

Can’t run crypto key generate rsa on Cisco 3750G Switch

While reconfiguring a Cisco switch 3750G WS-C3750G-24TS-S1U with version 12.0(5.3). When attempting to run “crypto key genearte rsa“, it was failing with below error: MW-CORE-SW01#conf tEnter configuration commands, one per line. End with CNTL/Z.MW-CORE-SW01(config)#hostname MWiredMW-CORE-SW01(config)#ip domain-name magwinya.co.zaMW-CORE-SW01(config)#crypto key generate rsa % Invalid input detected at ‘^’ marker. Workaround Solution: In order to run “crypto key… Read More »

Failed to get available update data. Drupal 8

Last checked: 2 years 6 months ago (Check manually) There was a problem getting update information. Try again later. Solution: Run this to clear cache and checked by system. SQL query root@en-db-03:~# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2… Read More »

How to backup and Restore ISPConfig 3

I recently backup and restored an ISPConfig 3 server root@za-02-802:#mkdir -p /backups/os/ispconfigbkuproot@za-02-802:#cd /backups/os/ispconfigbkup Back up all of the databases on a server: root@za-02-802:/backups/os/ispconfigbkup# mysqldump -u root -p –all-databases > all-database.sql root@za-02-802:/backups/os/ispconfigbkup# tar -pczf completeserverbackup.tar.gz /backups/os/all-database.sql /home /var/vmail /var/log /var/www /var/lib /etc /opt/letsencrypt /usr/local/ispconfig Restore to a New Server or Reinstallation root@za-02-802:#mkdir -p /backups/os/ispconfigbkup root@za-02-802:~# cd… Read More »

How to Upgrade IOS Image on Cisco Catalyst Switch 2960x

Firstly before upgrading IOS, you need to obtain the latest IOS version by logging on to Cisco Software Central at https://software.cisco.com/ and selecting your device type and version. Please note that configure, price, and order Cisco products, software, and services. Available to partners and to customers with a direct purchasing agreement. In my case I… Read More »

How to Configure the Cisco Switch to Run SSH

For SSH to work, your Cisco switch needs an RSA public/private key pair. The VTY relies on SSH for its secure transport. Follow these steps to set up your Cisco Switch to run SSH: Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname HO1HO1(config)#ip domain-name magwinya.co.zaHO1(config)#crypto key generate rsa% You already have RSA keys defined… Read More »

How to Restrict VTY – SSH access to a specific IP

Controlling Access to a VTY via SSH to a specific IP helps improve security to your Cisco Switches or Routers. You can control who can access the virtual terminal lines (vtys) to a router or Cisco Switch by applying an access list to inbound vtys. Switch(config)#access-list 1 remark “Restrict SSH Access” Switch(config)#access-list 1 permit host… Read More »

How to configure banner MOTD on Cisco switch

In this article I show you how to configure banner MOTD on Cisco switch. To configure the message-of-the-day (MOTD) banner that displays when the user logs in to a Cisco 2900 Series switch, use the banner motd command. Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# Switch(config)#banner motd ! Enter TEXT… Read More »

How to Initially Configure a Cisco Switch Tutorial

Configuring the Switch for the First Time. This guide describes how to initially configure a Catalyst 2900 series switch. To configure your switch you need a Cisco Console Cable, coupled with USB to 1 Serial (9 Pin) Port. This is totally dependent to the model of your Laptop. Step 1: Connect to your Cisco Switch… Read More »