Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mySQL Database on Ubuntu

Featured Replies

To Create Mysql user






mysql_install_db

mysqladmin -u root password YOURPASS mysql -u root -p

Password: YOUR PASS

mysql>create database DBNAME;

mysql>\q











TO import

mysql torrentflux < omggggg.sql -u root -p

Password: YOUR PASS




  • Moderators

I saw this post and I figured I would add my two cents. Here is a snippet of what I use to create the pureftp database from command line in mysql on my ubuntu box





Create a database called pureftpd and a MySQL user named pureftpd which the PureFTPd daemon will use later on to connect to the pureftpd database:





mysql -u root -p





CREATE DATABASE pureftpd;



GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON pureftpd.* TO 'pureftpd'@'localhost' IDENTIFIED BY 'ftpdpass';



GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON pureftpd.* TO 'pureftpd'@'localhost.localdomain' IDENTIFIED BY 'ftpdpass';



FLUSH PRIVILEGES;










Replace the string ftpdpass with whatever password you want to use for the MySQL user pureftpd. Still on the MySQL shell, we create the database table we need (yes, there is only one table!):







USE pureftpd;





CREATE TABLE ftpd (



User varchar(16) NOT NULL default '',



status enum('0','1') NOT NULL default '0',



Password varchar(64) NOT NULL default '',



Uid varchar(11) NOT NULL default '-1',



Gid varchar(11) NOT NULL default '-1',



Dir varchar(128) NOT NULL default '',



ULBandwidth smallint(5) NOT NULL default '0',



DLBandwidth smallint(5) NOT NULL default '0',



comment tinytext NOT NULL,



ipaccess varchar(15) NOT NULL default '*',



QuotaSize smallint(5) NOT NULL default '0',



QuotaFiles int(11) NOT NULL default 0,



PRIMARY KEY (User),



UNIQUE KEY User (User)



) TYPE=MyISAM;





quit;





As you may have noticed, with the quit; command we have left the MySQL shell and are back on the Linux shell.





BTW, (I'm assuming that the hostname of your ftp server system is server1.example.com) you can access phpMyAdmin under http://server1.example.com/phpMyAdmin/ (you can also use the IP address instead of server1.example.com) in a browser and log in as the user pureftpd. Then you can have a look at the database. Later on you can use phpMyAdmin to administrate your PureFTPd server.



Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.