Hướng dẫn check version mysql windows
In this quick tutorial, we'll learn how to check the MySQL version of a server. Without a doubt, MySQL is one of the most popular RDBMS (Relational database management system) options available, so you'll find it pretty much everywhere. There can be some pretty staggering differences between MySQL versions, so knowing which version you're working with is important. Learn here how to check the version of MySQL your server is using! Let's start with a quick video review of this
subject: Check the MySQL version
From the Command Line
Note: Are you looking to upgrade MySQL on a Liquid Web Core Managed or Fully Managed server? Then contact our support team! If you’re looking for ways to improve the performance of your VPS, check out our blog on Optimizing Your VPS! From the MySQL Client1. When you run the MySQL command client without any flags the version will be displayed. So while logged in via SSH enter:
The server version in this example is 10.1.29-MariaDB MariaDB Server. 2. From within the MySQL client, you can also run the following command for more details:
In this block of text, you'll find additional version details about your installed MySQL software like innodb_version, protocol_version, version_ssl_library, and more. From The PHPMyAdmin InterfaceIf you aren't familiar with running commands through ssh, you may have access to PHPMyAdmin on the server which gives a nice graphical interface for managing the databases. If you have cPanel or Plesk access you should be able to open PHPMyAdmin when logged in to the hosting account. In PHPMyAdmin on the right side, it should have information listen under the "Database server" section and the "Server version" is what shows the MySQL or MariaDB version is running on the server. When standard uptime is not enough, you don’t have to wage war alone. Liquid Web's High-Availability Databases provides the bleeding edge hardware needed for keeping your site online. Does significantly reducing overhead while not having to worry about managing MySQL sounds like a dream come true? Then check out our affordable plans! Xin chào tất cả các bạn,ở bài này,không có gì to tát cả, chỉ xin hướng dẫn các bạn mẹo nhỏ để kiểm tra version (phiên bản) của mysql trên server. Đặt vấn đề là tại sao cần phải kiểm tra version? Nếu các bạn là một lập trình viên thì chắc chắn rằng cần phải biết cách để kiểm tra version mysql để lập trình. Ví dụ : các bạn học lập trình php với laravel framework thì cần phải biết version đang sử dụng hiện tại là bản nào để có thể update.Hiện tại thì laravel yêu cầu PHP >= 5.6.4 .Vậy thì nếu bạn nào đang sử dụng xampp thì version >= 5.6,nếu bạn nào <= 5.6 thì cần phải update 5.6.4 lại. Mình sẽ viết 1 bài hướng dẫn cụ thể về cách updating php in xampp for windows. (lúc nào viết thì mình sẽ đưa link ở bài viết này). Ok.Bây giờ chúng ta cùng nhau kiểm tra version của mysql nào.Có rất nhiều cách để kiểm tra nhưng theo mình 2 cách này đơn giản nhất để hướng dẫn các bạn : Cách 1 : rất đơn giản,các bạn vào đường link như sau ở dưới máy chủ : http://localhost/phpmyadmin cổng mặc định là 80 nhưng nếu bạn nào đổi cổng thành 8080 hay 7070 chẳng hạn,thì đường dẫn sẽ là http://localhost:8080/phpmyadmin. Sau khi vào được rồi thì chúng ta sẽ có giao diện như thế này : Các bạn để ý rằng ở góc dưới bên phải,đó chính là version MYSQL là 5.6. Cách 2 : Các bạn vào thư mục xampp\htdocs sau đó tạo file version.php và các bạn code một đoạn code như mình : Sau tất cả thì các bạn sẽ đánh đường dẫn như sau : localhost/version.php (cổng port 80) , localhost:8080/version.php (cổng port thay đổi như 8080,7070..vv..). Vậy là chúng ta đã cùng nhau kiểm tra được version của mysql,chúc các bạn thực hiện thành công! |