In the tutorial you should install mariadb-server in place of mysql-server. sudo apt purge mysql* sudo apt purge mariadb* sudo apt autoremove sudo apt autoclean Check if still something in the system : dpkg -l | grep -e mysql -e mariadb if the list is empty then install mariadb server : sudo apt install mariadb-server Now try to check status on stop and start the database : Status after install : sudo systemctl status mysql.service ● mariadb.service - MariaDB database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-03-21 16:08:49 CET; 2min 1s ago Main PID: 15699 (mysqld) Status: "Taking your SQL requests now..." CGroup: /system.slice/mariadb.service └─15699 /usr/sbin/mysqld .../.. Check the PID : sudo more /var/run/mysqld/mysqld.pid 15699 Stop the database : su...
As a developer, I often need to check how my projects look and perform on mobile devices, especially for responsive testing. However, localhost typically works only on the same PC. Here’s the simple process I use to preview my Laravel project on a mobile device connected to the same Wi-Fi network: Step 1 — Find Your PC’s IP Address For Windows: Open Command Prompt . Type: ipconfig Note your IPv4 Address (for example: 192.168.0.107 ). For Ubuntu/Linux: Open Terminal . Type the following commands: nmcli dev status nmcli dev show wlp2s0 Find your IP4.ADDRESS value (for example: 192.168.0.107 ). Step 2 — Run Laravel Server for All Devices Navigate to your Laravel project folder. Run the command: php artisan serve --host= 0.0.0.0 --port= 8000 This command allows any device on the same network to access your local server. Step 3 — Access from Your Mobile Browser Ensure your phone and PC are connected to the same Wi-Fi network . On your mobile browse...
Comments
Post a Comment