[Daily] Install php pdo extension and import database under ubuntu

There is no pdo extension in the php installed by default, so an error will be reported when it is used, so use this command directly

apt-get install php-mysql

You can successfully install the pdo extension

After installing the database, you need to import the sql statement, first enter the database to create the database name in advance, such as the database of laykefu, -u -p database name, followed by the address of the sql file, you can import it

mysql -uroot -proot laykefu < /mnt/f/ubuntu/phpProject/laykefu/l

Recommended Posts

[Daily] Install php pdo extension and import database under ubuntu
Ubuntu 16.04 compile and install PHP 7.2
Install and deploy Gerrit under Ubuntu
Install nodejs and npm under Ubuntu 16.04
Compile and install QEMU under Ubuntu
[Daily] Win10 open and install ubuntu subsystem
Ubuntu install PHP and PHP Nginx configuration method
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
[python] python2 and python3 under ubuntu
2018-09-11 Install arduino under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
Compile and install OpenJDK8 from source code under Ubuntu 18.04.1
Cpp web (1) Install and use Crow service under Ubuntu
Talk about | Install and use Linux system Ubuntu under Win10
2.5 Linux (Ubuntu18.04) install database PostgreSQL
ubuntu18.04 compile and install python3.8
Install Oracle11gR2 database under CentOS6.9
ubuntu install and configure GitLab
Install server-side Shadowsocks under Ubuntu 16.04
How to compile and install PHP and Nginx in Ubuntu environment
Install MongoDB database under CentOS7
Ubuntu16.04 install SVN and configuration
Ubuntu16.04 install and uninstall VMware-Workstation 14
Install rgl package under Ubuntu
Install the latest version of Thunderbird and exchange plugins under ubuntu
Install and configure keepalived under CentOS 5.9
Install and use dig under ubuntu/debian
Compile and install LAMP under Centos 5.2
Install and configure MySQL on Ubuntu
Install 3 single-cell R packages under Ubuntu
Install and configure Docker in Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Redis installation under ubuntu and windows
Small tool: install screenshot tool under ubuntu
Install Python3 and ansible under CentOS8
Install and use docker under CentOS 6.8
Install Python3 and Py under CentOS7
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
ubuntu failed to install php-zip extension
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Install Gnome and VNC on Ubuntu Server
Compile and install libmodbus library under CentOS7
51 MCU program development and download under Ubuntu
Install linux (ubuntu) dual system under windows system
Installation and uninstallation of CUDA under Ubuntu 16.04
Install fonts on Ubuntu and switch default fonts
Ubuntu 18.04 source code compile and install ffmpeg4.1
Install YouCompleteMe plugin for vim under Ubuntu
Install PyTesser under ubuntu 14.04 for OCR recognition
Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0