Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

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.

joshuascholar

Member
  • Joined

  • Last visited

  1. I'm trying to create a database of articles and in order to test it I wanted to make a test database from the command line and insert a row in it. But one column is supposed to hold a pdf file in a longblob, and load_file always returns NULL Both trying this as an insert and as a test select is failing. I tried granting all privileges to root@localhost, hoping that would fix it, but it didn't help. I tried setting max_allowed_packet = 50M but that didn't help. Here is the sample table I tried, and the insert command: CREATE TABLE articles (article_id int not null AUTO_INCREMENT, article_title varchar(1000) not null, article_pdf longblob not null, PRIMARY KEY (article_id), FULLTEXT(article_title)); insert into articles (article_title, article_pdf) values ('Route of hydrodynamic turbulence in rotating shear flow: Secondary perturbation triggers growing eigenmodes through the elliptical instability',load_file('C:\Users\user\Documents\sample_papers\0509001.pdf')); That always fails with article_pdf can't be NULL. It also fails as load_file('C:\\Users\\user\\Documents\\sample_papers\\0509001.pdf') and as load_file('C:/Users/user/Documents/sample_papers/0509001.pdf') Similarly if I test as simply Select load_file('C:/Users/user/Documents/sample_papers/0509001.pdf'); it returns NULL I tried dropping a simple text file everywhere I could think of, and testing with Select load_file('testfile.txt'); always returns NULL too. Help! How can I upload a blob from the command line using Uniform Server's mysql command line? And if that doesn't work, can I do it from php?

Account

Navigation

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.