If you're using Windows, you can try this method:
a. Make sure the database service is running then open task manager > go to "details" tab and find process name "mysqld.exe" :
if you have multiple process, note down all of the "PID" numbers.
b. Open Command Prompt (as administrator if required) then type the following
netstat -aon findstr "PID" then press "Enter"; for example, the "PID" is 2668 so like this:
You might get result of two or more rows depending on the connection made to your database but the port will all be the same. In that example, the port is 4238, that is beside the word TCP:
Additional:
IF somehow you are connected to the database through a tool (like Navicat) and able to run query but (strangely) unable to check the connection properties, then you can execute this query to get the database port number: SHOW VARIABLES LIKE '%port%';
The snippets library includes built-in and user-defined snippets. If you would like to reduce the number of entries in the list, you can enter a search string in the Search box to filter the list (#2 in the above image). You can also show the available snippets according to your database type or for all database types. Right-click anywhere on the library and select "Show Snippets For Other Database Type" from the popup menu to either show or hide snippets for other database types. A checkmark beside the item indicates that "Show Snippets For Other Database Type" is active.
The SQL LIMIT clause constrains the number of rows returned by a SELECT statement. For Microsoft databases like SQL Server or MSAccess, you can use the SELECT TOP statement to limit your results, which is Microsoft's proprietary equivalent to the SELECT LIMIT statement. However, for most relational databases (DBMSes), including MySQL/MariaDB, PostgreSQL, and Oracle, the SQL LIMIT clause can solve several problems. In today's blog, we'll explore a few of these, using Navicat for PostgreSQL.
As the name implies, top-N queries are those that attempt to find the top number of records from a result set. This could be top 1, top 3, top 5, top 10, or top [any] number. Some common examples are:
It is possible to locate rows closest to a given date using LIMIT. You just have to compare row dates to the given date, order the results, and limit the results to the number of rows that you'd like to see. Here's a query that returns rows whose creation_date is greater than '2018-01-01':
The corollary of top N queries are bottom N queries. These are queries that attempt to find the bottom number of records from a result set. We can convert our Top queries into their Bottom equivalents quite easily!
To counts all of the rows in a table, whether they contain NULL values or not, use COUNT(*). That form of the COUNT() function basically returns the number of rows in a result set returned by a SELECT statement.
A statement like the one above that invokes the COUNT(*) function without a WHERE clause or additional columns, will perform very fast on MyISAM tables because the number of rows is stored in the table_rows column in the tables table of the information_schema database.
The COUNT(expr) version of the COUNT function also accepts individual column names, the effect of which is that COUNT(column_name) will return the number of records where column_name is not NULL. Hence, the following SELECT query would fetch the number of rows where the description column contained a non-NULL value:
These are not the Abs that people train to get ready for the beach. Rather, Abs is short for "Absolute". Hence, the Abs function accepts a numeric value as its argument and returns its absolute equivalent. In simpler terms, Abs returns the positive version of a given number, whether its positive or negative to begin with. Here's the function signature:
Another extremely popular numeric function is Round. Rounding functions can vary quite a bit in their implementation; some only round to an integer, while others let you specify the number of decimal places to round to. SQL Server's Round function goes one step further, by accepting up to three arguments:
Floor is the reverse of the Ceiling function; it always rounds a number down to the first integer that is less than or equal to that number. With positive numbers, Floor simply truncates decimals without altering the next highest integer. However, with negative numbers, it does increment the integer - downwards. For example, the floor of -0.5 is -1, as it is the first integer that is less than -0.5.
Basically I have a field that is an int field and contains a four digit number. What I need is tto filter it by a variable (thats easy). The variable could only contain three or sometimes even two digits.
The following tables compare general and technical information for a number of available database administration tools. Please see individual product articles for further information. This article is neither all-inclusive nor necessarily up to date.
With Transactional replication, the number of required Data Synchronization Jobs increases substantially because data must be replicated across all of the user databases. For example, say that we had three databases called sakila, sakila2, and sakila3. We could merge and propagate the full dataset across all of the user databases using a total of six Data Synchronization Jobs: three to merge the user databases, and another three to update them with the merged dataset.
In this tutorial I will explain how to check MySQL version number in different ways. MySQL provides some features for particular version numbers and on particular platforms only. So, in some situations it gets really important to find the MySQL version number installed. If you are faced with such a problem you can use any of the following techniques to find MySQL version number.
I am going to show you how to find MySQL version number using the following tools and techniques:
You could also use MySQL Workbench to check the version number for MySQL. Once you are connected to a server using MySQL Workbench, click on Server from main menu and then "Server Status" to view the server status (including version).
You can also find the version number using mysqladmin command line tool. mysqladmin will also provide you good information about the server e.g. uptime, open tables etc.. Here is how I ran it on my windows machine.
Click on home icon on the top-left corner of any page or click on "Server:" link at the very top. You should see MySQL server's version number on the right side of the page (something like the image below).
If you want to connect to your SQL database using the SQL port number, there are a few things you need to know. In this blog post, we will explain what the SQL port number is and how to connect to your SQL database using the hostname and port number.
SQL Server default port is 1433. If you want to change the port number, you can do so by going to SQL Server Configuration Manager. In the left-hand pane, expand SQL Server Network Configuration and then select Protocols for SQLEXPRESS. In the right-hand pane, double-click TCP/IP.
In the interest of full disclosure, I want to state before moving on that I personally use Navicat Enterprise. I like the SQL Editor, Visual SQL Builder, and numerous import/export options. In recent editions, the makers of Navicat Enterprise added Cloud collaboration, which was a real game changer in the DBA field. Version 12 introduces a number of UI improvements over its predecessor, including:
Data synchronization also comes with a new look along with a number of new functions. The comparison results are now listed and colored for particular status to help you easily distinguish the differences between records: different, only in source, only in target, and identical. You can then reorder your deployment scripts and update the target to match the source for some or all of the records.
So, those were the most important features of a Navicat Premium 15 that you should know about. But there are also a number of other small advantages within Navicat Premium 15, which you will come to know across, once you start using the program for your everyday requirements.
Another way to check your current MySQL version in XAMPP is as follows. Navigate to the readme_en.txt file which can be found in your XAMPP installation folder. There, you will see the MySQL version number.
From one centralized dashboard, DBAs can view each server instance and access in-depth information such as CPU usage, memory usage, DB connections, number of queries, and many more. Navicat Monitor allows administrators to collect metric information for multiple instances and compare and analyze performance data and export the data into PDF reports. DBAs can schedule reports to run at specific intervals and dynamically update whenever the server state is changed.
CATENARY SIMULATION SOFTWARE:
Through integration with the NaviPac system and its 3D visualization module option, Danish company Eiva's newly released NaviCat software features catenary simulations related to anchor handling tug operations. By utilizing predefined cable, MLB and anchor libraries NaviCat makes creation, modification and display of catenaries easy and intuitive, says Eiva. Each library allows for maintenance and extension by the user. During catenary simulation cable types, MLB's and anchors can be replaced/exchanged dynamically and the effect is displayed instantly. Defined project files can be stored by the user for later re-use of specific set-ups. NaviCat can operate in either manual, calculation or online mode. A large number of catenary parameters can be displayed, such as TDP, tension and angle at fairlead, tension along catenary, total length, position of anchor and MLB's, estimated anchor position, and display tension alarms along the catenary. Display is supported by tools including a/o zooming, measurement, automatic arranging of catenary profiles, drag-and-drop and dockable windows.