Tag Info

Hot answers tagged

6

All you should need is: listen_addresses = '*' and then to modify pg_hba.conf to permit connections from the desired source. This is stated in the comments on the (very old) article you were reading. Try using the main PostgreSQL documentation, or up to date tutorials, in future. See: Connection and authentication settings Client authentication


5

"no space left on the device" could also mean that the partition is out of inodes. Use df -i to check inode usage. Edit: Each file, directory, and symbolic link requires one inode. So the idea is to remove some files from the / partition. It doesn't matter how large the files are. You can of course just pick some files on the partition and move them to ...


4

Neither MyISAM nor InnoDB have multithreaded query implementation. Nor do other XtraDB, TokuDB. It is a long standing issue and limitation of MySQL. I don't know that the limitation is within the MySQL server, but rather in the storage engine implementation. No one ever did it... I'm currently evaluating the column-store InfiniDB and Infobright IEE. They ...


3

When you reboot the OS you remove all of the disk reads that have previously put into operating system disk cache (RAM). Once you've rebooted, the operating system will have to read the MySQL data from disk, which is several orders of magnitude slower than reading from cache (RAM). Optimise "fixes" this as it causes MySQL to read all of the table data from ...


3

In think your problem is that gourmet_id is declared as CHARACTER(30). If you change it to CHARACTER VARYING(30), it should work much faster. This is what happens: -> Seq Scan on counters c (cost=0.00..250342.85 rows=2725633 width=16) (actual time=0.009..1610.743 rows=2751732 loops=1) Filter: ((counter_name)::text = 'FnfHit'::text) Rows Removed by ...


3

You seem to expect that rows with NULL values are excluded from a B-tree index automatically, but that's not the case. Those are indexed as well and can be searched for. However, since: access_type ... is null in 90% of cases that's hardly useful in your case. Such common values hardly ever make sense in an index to begin with, be it NULL or any other ...


3

I highly recommend that you do not run GRANT ALL PRIVILEGES ON *.* TO 'username'@'%'; This user has the SHUTDOWN privilege, which can allow the user shutdown mysql remotely with mysqladmin -hIP_of_DB Server -uusername -p shutdown You also do not want the SUPER privilege given remotely to just anyone. Why ? The SUPER privilege enables an account to ...


2

I would suggest you to use active-passive cluster with drbd. Active-Active leads to more problems then it solves especially if you use MySQL as database because you can't run 2 MySQL Daemons on the same Database! Creating drbd cluster is simple. You have to do the following steps on both servers. Create a partition for share Create a drbd config with the ...


2

PostgreSQL doesn't support spanning a single table over multiple tablespaces directly. You can use table partitioning to create a "master" table, with child tables on different tablespaces. It's a bit tricky and it means you can't use foreign keys or enforce a proper unique constraint on the primary key, so it's not generally the preferred option. A more ...


2

I see two possible reasons: Your installation script is not correct and failed to create the tables correctly The CentOS installation does not have InnoDB installed (or activated). MySQL will not tell you about it if you request a non-existing storage engine (or at least not loud and clear)


2

In the link that Dimitar provided, the question itself hints at a solution - if you're putting this in a script, you could add the SET PASSWORD line with an empty password. export DEBIAN_FRONTEND=noninteractive sudo debconf-set-selections <<< 'mariadb-server-10.0 mysql-server/root_password password PASS' sudo debconf-set-selections <<< ...


2

I think there are two unrelated problems here: 1) failure to connect on Unix domain socket This part of ps output: /opt/PostgreSQL/9.3/bin/postgres -D /home/dev/postgres_data indicates that you're not running postgresql as packaged for Ubuntu. Ubuntu doesn't install its binaries inside /opt (it doesn't even create /opt) and your data directory ...


2

What you have seems fine. I would add the following Run this on the Master. SET GLOBAL innodb_fast_shutdown = 0; SET GLOBAL sync_binlog = 1; SET GLOBAL sync_master_info = 1; This will cause everything that has been uncommitted to be committed on shutdown. Then, it flushes the binlogs to disk. On the Slaves, run this SET GLOBAL innodb_fast_shutdown = ...


2

I have been asking the same question for several months and have also been unable to find a clear answer on the internet. Perhaps that means that I'm more concerned than I should be; perhaps I should not be doing database server maintenance... So I was forced to do this yesterday, and everything worked well. This is how I went about it: I upgraded the ...


2

Option 1: remove createdb for 9.1 When in doubt, use dpkg -S to learn which packages provide a certain command. Example: $ dpkg -S createdb postgresql-doc-9.1: /usr/share/doc/postgresql-doc-9.1/html/tutorial-createdb.html postgresql-doc-9.1: /usr/share/doc/postgresql-doc-9.1/html/app-createdb.html postgresql-client-9.1: ...


1

How do I avoid sort in the explain result? Actuall I didn't ask any sort in the SQL Statement. You've asked for rows to be aggregated. One way to do this is to sort the data set and then scan it to collapse out duplicates. This can be faster than hash aggregation, which is the other way PostgreSQL knows how to do grouping. So while you didn't ...


1

You should be able to easily install on most (if not all) flavours of x86-based Linux distributions. There are officially packaged versions for: Ubuntu Debian RPM (Redhat, CentOS, Fedora, Amazon Linux) You can also install from tarball, or check if there are packages available in the "ports" equivalent for your distribution.


1

Yes, this is normal. Linux will use any free memory if needed for cache and buffers - it will be reallocated if needed for anything else (i.e. stating a new program, an existing program needing more memory for something, caching more recently accessed information, or the hypervisor requesting some memory back by inflating the local balloon if you VM is setup ...


1

I decided to go the route of a fresh install. So instead of trying to figure out what postgresql-command will shut down the server I used: sudo apt-get purge postgresql-9.1 and: sudo apt-get purge postgresql-9.3 A fresh install might be an easier solution to some of my other problems I had since upgrading to Ubuntu 14.04. I found this at: ...


1

I found a temporary solution to my problem. I edited the pg_hba.conf of the 9.3 server to say trust in the first two active lines. And after restarting (sudo service postgresql restart) I can connect to the server again using pgadmin. The downside is that the server might now not be password protected (I will open a separate question if I encounter any ...


1

If you do not need all versions of postgresql installed at the same time I would recommend you uninstall them all and then perform a clean installation of PostgreSQL 9.3, postGIS 2.1 and pgAdmin 1.18 and all related packages. After you should have no problem to associate PostGIS as extension to any PostgreSQL scheme


1

But that is 9.1. - Is pgadmin connected to the wrong postgresql? Yes. It appears that you're connected to your 9.1 server, suggesting that 9.1 is still running. Do pg_lsclusters to see what PostgreSQL installs you have and their status. Each runs on a different port. If you want to connect to 9.3 you need to check what port it runs on and connect ...


1

Put the following parameters in your my.cnf and then restart the service:- skip-name-resolve log-warnings=1 The above activity will solve your issue. Try to check this link also:- http://serverfault.com/questions/341290/mysql-warning-ip-address-could-not-be-resolved


1

SQL server has some special optimizations for count(*) that postgres does not have so the test may be invalid. I would benchmark the time it takes for the full set from the application point of view. Another fair test would be the time it takes to insert into a scratch table (via INSERT /SELECT)


1

You must install Oracle as a non-root user. Generally, that user would be called oracle, but it can be anything, as long as it's not root.


1

ok, so i found a solution, seing how apparently my default admin password got messed up i ran a ' find /oracle/ -iname 'apxchpwd.sql' Search command once i got the location of the file, i logged in sqlplus as sysdba, then ran @[complete_apxchpwd.sql_path] got prompted for the new password, typed it in, and voila


1

You need root password to achieve non-interactive installation of MariaDB 10.


1

You may have been unaware of this, but everything and its grandmother done in MySQL is a question. In light of this, the real question is : To mysqld, what is a Question ? According to the MySQL Documentation on Questions: The number of statements executed by the server. This includes only statements sent to the server by clients and not statements ...


1

Open terminal and edit /etc/mysql/my.cnf sudo nano /etc/mysql/my.cnf Underneath the [mysqld] section.add: lower_case_table_names = 1 Restart mysql sudo /etc/init.d/mysql restart Then check it here: mysqladmin -u root -p variables



Only top voted, non community-wiki answers of a minimum length are eligible